aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas/webgl_paint_thread.rs
diff options
context:
space:
mode:
authorGlenn Watson <github@intuitionlibrary.com>2017-02-27 08:54:28 +1000
committerGlenn Watson <github@intuitionlibrary.com>2017-02-27 08:54:28 +1000
commit64a9a45b2aa7fe942d7a3da97cc09c15e3b96874 (patch)
tree942253a33d873f7a6c4d3b0c13e0168c7ea6c7dc /components/canvas/webgl_paint_thread.rs
parent261df34ced0bdcb8126994c8653ac101d1172085 (diff)
downloadservo-64a9a45b2aa7fe942d7a3da97cc09c15e3b96874.tar.gz
servo-64a9a45b2aa7fe942d7a3da97cc09c15e3b96874.zip
Update WR (image tiling, inset box shadow fixes, new key api).
Diffstat (limited to 'components/canvas/webgl_paint_thread.rs')
-rw-r--r--components/canvas/webgl_paint_thread.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/canvas/webgl_paint_thread.rs b/components/canvas/webgl_paint_thread.rs
index 7dcfabda123..53a3732889f 100644
--- a/components/canvas/webgl_paint_thread.rs
+++ b/components/canvas/webgl_paint_thread.rs
@@ -101,7 +101,7 @@ fn create_readback_painter(size: Size2D<i32>,
-> Result<(WebGLPaintThread, GLLimits), String> {
let context = try!(GLContextWrapper::new(size, attrs));
let limits = context.get_limits();
- let image_key = webrender_api.alloc_image();
+ let image_key = webrender_api.generate_image_key();
let painter = WebGLPaintThread {
size: size,
data: WebGLPaintTaskData::Readback(context, webrender_api, image_key)
@@ -241,6 +241,7 @@ impl WebGLPaintThread {
height: height as u32,
stride: None,
format: webrender_traits::ImageFormat::RGBA8,
+ offset: 0,
is_opaque: false,
},
pixels.clone());