Auto merge of #7092 - dzbarsky:putimagedata, r=jdm

Clean up and fix PutImageData



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7092)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-08-09 07:00:56 -06:00
commit 6a8bc85284
6 changed files with 94 additions and 121 deletions

View file

@ -91,7 +91,7 @@ pub enum Canvas2dMsg {
GetImageData(Rect<i32>, Size2D<f64>, IpcSender<Vec<u8>>),
LineTo(Point2D<f32>),
MoveTo(Point2D<f32>),
PutImageData(Vec<u8>, Rect<f64>, Option<Rect<f64>>),
PutImageData(Vec<u8>, Point2D<f64>, Size2D<f64>, Rect<f64>),
QuadraticCurveTo(Point2D<f32>, Point2D<f32>),
Rect(Rect<f32>),
RestoreContext,