Skip to content

Commit

Permalink
Imlplement get_composition_op
Browse files Browse the repository at this point in the history
  • Loading branch information
Eijebong committed Aug 21, 2019
1 parent a28d000 commit 4c73e4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/canvas/canvas_data.rs
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions components/canvas/raqote_backend.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 4c73e4b

Please sign in to comment.