Merge pull request #3097 from mrobinson/pinch-zoom-delay

Update rust layers and fix delay in pinch zoom
This commit is contained in:
Martin Robinson 2014-08-17 10:25:13 -07:00
commit 35b626e592
3 changed files with 5 additions and 1 deletions

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();
}

View file

@ -372,6 +372,7 @@ impl<C:RenderListener + Send> RenderTask<C> {
buffer.resolution = scale;
buffer.native_surface.mark_wont_leak();
buffer.painted_with_cpu = true;
buffer.content_age = tile.content_age;
buffer
}
None => {
@ -391,6 +392,7 @@ impl<C:RenderListener + Send> RenderTask<C> {
resolution: scale,
stride: (width * 4) as uint,
painted_with_cpu: true,
content_age: tile.content_age,
}
}
};
@ -422,6 +424,7 @@ impl<C:RenderListener + Send> RenderTask<C> {
resolution: scale,
stride: (width * 4) as uint,
painted_with_cpu: false,
content_age: tile.content_age,
}
}
};

@ -1 +1 @@
Subproject commit 016b896f385bea119d13d6c2a13208a4c4b8b252
Subproject commit 5c167a7f739553dff01d3d6cba25e344058f77a1