Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for surface pattern. #156
Conversation
This comment has been minimized.
This comment has been minimized.
jdm
commented on src/azure_hl.rs in 00958cc
May 14, 2015
|
This clone doesn't look safe; we'll have a dangling pointer if the clone outlives the original. |
|
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 |
hyowon commentedMay 14, 2015
I'm interested in implementing canvas features for servo.
SurfacePattern seems to be needed to support pattern fill for canvas.