aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/image_cache.rs
diff options
context:
space:
mode:
authorGlenn Watson <github@intuitionlibrary.com>2017-08-08 07:51:30 +1000
committerGlenn Watson <github@intuitionlibrary.com>2017-08-09 07:05:05 +1000
commitf6a9f15fed1a88949ea45875adc44b48c419f87b (patch)
tree9aa2a85547c3b6e2e52849d6569499c5821d8744 /components/net/image_cache.rs
parent689dadc75174eff892e1da9d072ee9f109ede925 (diff)
downloadservo-f6a9f15fed1a88949ea45875adc44b48c419f87b.tar.gz
servo-f6a9f15fed1a88949ea45875adc44b48c419f87b.zip
Update WR.
* CPU text run optimizations. * Linux subpixel positioning / rasterization. * Update debug flags API. * Update to resource transactions API.
Diffstat (limited to 'components/net/image_cache.rs')
-rw-r--r--components/net/image_cache.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/net/image_cache.rs b/components/net/image_cache.rs
index 4cb5e09e2f3..920330008d1 100644
--- a/components/net/image_cache.rs
+++ b/components/net/image_cache.rs
@@ -79,7 +79,9 @@ fn set_webrender_image_key(webrender_api: &webrender_api::RenderApi, image: &mut
};
let data = webrender_api::ImageData::new(bytes);
let image_key = webrender_api.generate_image_key();
- webrender_api.add_image(image_key, descriptor, data, None);
+ let mut updates = webrender_api::ResourceUpdates::new();
+ updates.add_image(image_key, descriptor, data, None);
+ webrender_api.update_resources(updates);
image.id = Some(image_key);
}