Skip to content

Commit

Permalink
Implement get_format
Browse files Browse the repository at this point in the history
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 21, 2019
1 parent dc78b6a commit 8a57876
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Expand Up @@ -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" }

2 changes: 1 addition & 1 deletion components/canvas/raqote_backend.rs
Expand Up @@ -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())
Expand Down

0 comments on commit 8a57876

Please sign in to comment.