Skip to content
Permalink
Browse files

Imlplement get_composition_op

  • Loading branch information...
Eijebong committed Aug 11, 2019
1 parent a28d000 commit 4c73e4bb3fe1c6c6fec41bfb5dc82ef251a8bbd0
Showing with 3 additions and 3 deletions.
  1. +1 −1 components/canvas/canvas_data.rs
  2. +2 −2 components/canvas/raqote_backend.rs
@@ -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 {

0 comments on commit 4c73e4b

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