mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Update WR (image tiling, inset box shadow fixes, new key api).
This commit is contained in:
parent
261df34ced
commit
64a9a45b2a
6 changed files with 43 additions and 33 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue