rust-azure icon indicating copy to clipboard operation
rust-azure copied to clipboard

Rust bindings to mozilla-central's graphics abstraction layer

Results 7 rust-azure issues
Sort by recently updated
recently updated
newest added

(Well, Servo's build) --- This change is [](https://reviewable.io/reviews/servo/rust-azure/278)

The override member methods should be marked 'override' instead of 'virtual'.

There appears to be platform specific code in this repository.

``` rust extern crate azure; extern crate euclid; use azure::azure_hl::DrawTarget; use azure::azure_hl::BackendType; use azure::azure_hl::SurfaceFormat; use euclid::Size2D; fn main() { let target = DrawTarget::new(BackendType::Skia, Size2D::new(100, 100), SurfaceFormat::R8G8B8A8); println!("can't print"); } ```...

I don't think this is the right solution. It sounds like we're not choosing the appropriate size for the provided canvas pixels; we should fix that instead of working around...

Culprit in the stack trace: `azure::azure_hl::DrawTarget::new(backend=Skia, size=(width = 11621, height = 109884), format=B8G8R8A8`

Apparently it's possible to get null derefs in `DrawTarget`. That should be forbidden!