diff options
author | Martin Robinson <mrobinson@igalia.com> | 2014-11-17 10:59:43 -0800 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2015-01-09 16:20:09 -0800 |
commit | efdc758dd7bb983f81737a927b1724bacecd5aea (patch) | |
tree | 6ef3b7cab4fac44606fe628553876fa6cc34fa3a | |
parent | 19f57008da833e8a8b0bf401c960c271e305970e (diff) | |
download | servo-efdc758dd7bb983f81737a927b1724bacecd5aea.tar.gz servo-efdc758dd7bb983f81737a927b1724bacecd5aea.zip |
Only send SetLayerRect messages for compositor-backed frames
Only send SetLayerRect when we know that a frame has a compositor
layer. If it doesn't, we wait until we send the new layer to the
compositor.
-rw-r--r-- | components/compositing/constellation.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/compositing/constellation.rs b/components/compositing/constellation.rs index e1fa00c2e82..fca671550b1 100644 --- a/components/compositing/constellation.rs +++ b/components/compositing/constellation.rs @@ -626,9 +626,10 @@ impl<LTF: LayoutTaskFactory, STF: ScriptTaskFactory> Constellation<LTF, STF> { match children.iter_mut().find(|child| subpage_eq(child)) { None => {} Some(child) => { + let has_compositor_layer = child.frame_tree.has_compositor_layer.get(); update_child_rect(child, rect, - true, + has_compositor_layer, &mut already_sent, &mut self.compositor_proxy, self.window_size.device_pixel_ratio) |