Mark all layers as having changed content during pinch zoom

This ensures that layers know that they need to re-issue buffer
requests immediately instead of waiting until another content change
happens.

Fixes #2988.
This commit is contained in:
Martin Robinson 2014-08-02 18:25:50 -07:00
parent ebfe8df2a0
commit 96a813724f

View file

@ -223,6 +223,7 @@ impl IOCompositor {
// If a pinch-zoom happened recently, ask for tiles at the new resolution
if self.zoom_action && precise_time_s() - self.zoom_time > 0.3 {
self.zoom_action = false;
self.scene.mark_layer_contents_as_changed_recursively();
self.send_buffer_requests_for_all_layers();
}