diff options
author | Glenn Watson <github@intuitionlibrary.com> | 2017-01-30 16:33:14 +1000 |
---|---|---|
committer | Glenn Watson <github@intuitionlibrary.com> | 2017-02-01 05:40:44 +1000 |
commit | 4cbefe82b5b8adb0ddeecc6d105b46df7d1034ee (patch) | |
tree | 1a1c7a9f0b515b1ffff503f1b62b98bd694fb1a5 /components/canvas/webgl_paint_thread.rs | |
parent | 71deabc8bc40baaccf15415cc1f789392de62f2c (diff) | |
download | servo-4cbefe82b5b8adb0ddeecc6d105b46df7d1034ee.tar.gz servo-4cbefe82b5b8adb0ddeecc6d105b46df7d1034ee.zip |
Update WR (radial gradients, subpixel positioning, tiling changes).
Diffstat (limited to 'components/canvas/webgl_paint_thread.rs')
-rw-r--r-- | components/canvas/webgl_paint_thread.rs | 10 |
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 { |