aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/webgl_paint_thread.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-01-31 11:49:18 -0800
committerGitHub <noreply@github.com>2017-01-31 11:49:18 -0800
commit8421ae60774922e6b9ab9b1b562efce22916b200 (patch)
treee85a23ee87d83951cee7d8672e83180c331485f2 /components/canvas/webgl_paint_thread.rs
parentec9da4d2763bad2df96757d3f8f2666b9d0507f2 (diff)
parent4cbefe82b5b8adb0ddeecc6d105b46df7d1034ee (diff)
downloadservo-8421ae60774922e6b9ab9b1b562efce22916b200.tar.gz
servo-8421ae60774922e6b9ab9b1b562efce22916b200.zip
Auto merge of #15111 - glennw:wr-update-generate, r=pcwalton
Update WR (radial gradients, generate_frame API, mac subpixel improvements, ANGLE shader support). <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15111) <!-- Reviewable:end -->
Diffstat (limited to 'components/canvas/webgl_paint_thread.rs')
-rw-r--r--components/canvas/webgl_paint_thread.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/components/canvas/webgl_paint_thread.rs b/components/canvas/webgl_paint_thread.rs
index e852742bc15..7dcfabda123 100644
--- a/components/canvas/webgl_paint_thread.rs
+++ b/components/canvas/webgl_paint_thread.rs
@@ -236,9 +236,13 @@ impl WebGLPaintThread {
// TODO: This shouldn't be a common path, but try to avoid
// the spurious clone().
webrender_api.update_image(image_key,
- width as u32,
- height as u32,
- webrender_traits::ImageFormat::RGBA8,
+ webrender_traits::ImageDescriptor {
+ width: width as u32,
+ height: height as u32,
+ stride: None,
+ format: webrender_traits::ImageFormat::RGBA8,
+ is_opaque: false,
+ },
pixels.clone());
let image_data = CanvasImageData {