Skip to content
Permalink
Browse files

Implement get_format

Since raqote doesn't have multiple formats for its surfaces, this is a
noop to avoid crashing with the unimplemented
  • Loading branch information...
Eijebong committed Aug 16, 2019
1 parent dc78b6a commit 8a57876482c87c4a5c5d76da4a2db948b44a539d
Showing with 1 addition and 2 deletions.
  1. +0 −1 Cargo.toml
  2. +1 −1 components/canvas/raqote_backend.rs
@@ -28,4 +28,3 @@ opt-level = 3
# Those are here to dedupe winapi since mio is still using winapi 0.2.
mio = { git = "https://github.com/servo/mio.git", branch = "servo" }
iovec = { git = "https://github.com/servo/iovec.git", branch = "servo" }

@@ -333,7 +333,7 @@ impl GenericDrawTarget for raqote::DrawTarget {
raqote::DrawTarget::fill(self, &pb.finish(), pattern.as_raqote(), &draw_options);
}
fn get_format(&self) -> SurfaceFormat {
unimplemented!();
SurfaceFormat::Raqote(())
}
fn get_size(&self) -> Size2D<i32> {
Size2D::new(self.width(), self.height())

0 comments on commit 8a57876

Please sign in to comment.
You can’t perform that action at this time.