mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update WR (typed units, glyph cache, various features).
This commit is contained in:
parent
4eb653817f
commit
f517d03364
10 changed files with 91 additions and 80 deletions
|
@ -116,7 +116,8 @@ impl WebGLPaintThread {
|
|||
webrender_api_sender: webrender_traits::RenderApiSender)
|
||||
-> Result<(WebGLPaintThread, GLLimits), String> {
|
||||
let wr_api = webrender_api_sender.create_api();
|
||||
match wr_api.request_webgl_context(&size, attrs) {
|
||||
let device_size = webrender_traits::DeviceIntSize::from_untyped(&size);
|
||||
match wr_api.request_webgl_context(&device_size, attrs) {
|
||||
Ok((id, limits)) => {
|
||||
let painter = WebGLPaintThread {
|
||||
data: WebGLPaintTaskData::WebRender(wr_api, id),
|
||||
|
@ -252,7 +253,8 @@ impl WebGLPaintThread {
|
|||
}
|
||||
}
|
||||
WebGLPaintTaskData::WebRender(ref api, id) => {
|
||||
api.resize_webgl_context(id, &size);
|
||||
let device_size = webrender_traits::DeviceIntSize::from_untyped(&size);
|
||||
api.resize_webgl_context(id, &device_size);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue