aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/canvas_data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/canvas/canvas_data.rs')
-rw-r--r--components/canvas/canvas_data.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/components/canvas/canvas_data.rs b/components/canvas/canvas_data.rs
index 12bc87f84e1..c843ab19454 100644
--- a/components/canvas/canvas_data.rs
+++ b/components/canvas/canvas_data.rs
@@ -358,7 +358,15 @@ pub enum Pattern<'a> {
#[cfg(feature = "canvas2d-azure")]
Azure(azure::azure_hl::Pattern, PhantomData<&'a ()>),
#[cfg(feature = "canvas2d-raqote")]
- Raqote(raqote::Source<'a>),
+ Raqote(raqote::Source<'a>, Option<Repetition>),
+}
+
+#[derive(Clone)]
+pub enum Repetition {
+ Repeat,
+ RepeatX,
+ RepeatY,
+ NoRepeat,
}
pub enum DrawSurfaceOptions {