Repository navigation
Add support for surface pattern. - #156
Conversation
|
This will also be useful for making our tiled background painting code less hilariously slow. |
|
@jdm All patterns are cloneable now. #[derive(Clone)] I'm not sure whether we can remove clone from all patterns or not. #[derive(Clone)] Is it difficult to keep on using clone while avoiding a dangling pointer? @pcwalton Interesting. I'll also see the tiled background painting code. |
|
Yeah, I just noticed that the other pattern types derive |
|
That makes great sense. Thank you for your kind guidance. Please review additional patch. |
|
Looks great! |
|
cc @yichoi |
I'm interested in implementing canvas features for servo.
SurfacePattern seems to be needed to support pattern fill for canvas.