mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement get_format
Since raqote doesn't have multiple formats for its surfaces, this is a noop to avoid crashing with the unimplemented
This commit is contained in:
parent
dc78b6a989
commit
8a57876482
2 changed files with 1 additions and 2 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue