mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Imlplement get_composition_op
This commit is contained in:
parent
a28d00013c
commit
4c73e4bb3f
2 changed files with 3 additions and 3 deletions
|
@ -325,7 +325,7 @@ pub enum CompositionOp {
|
|||
#[cfg(feature = "canvas2d-azure")]
|
||||
Azure(azure::azure_hl::CompositionOp),
|
||||
#[cfg(feature = "canvas2d-raqote")]
|
||||
Raqote(()),
|
||||
Raqote(raqote::BlendMode),
|
||||
}
|
||||
|
||||
pub enum SurfaceFormat {
|
||||
|
|
|
@ -16,8 +16,8 @@ use std::marker::PhantomData;
|
|||
pub struct RaqoteBackend;
|
||||
|
||||
impl Backend for RaqoteBackend {
|
||||
fn get_composition_op(&self, _opts: &DrawOptions) -> CompositionOp {
|
||||
unimplemented!()
|
||||
fn get_composition_op(&self, opts: &DrawOptions) -> CompositionOp {
|
||||
CompositionOp::Raqote(opts.as_raqote().blend_mode)
|
||||
}
|
||||
|
||||
fn need_to_draw_shadow(&self, color: &Color) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue