mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Merge pull request #3097 from mrobinson/pinch-zoom-delay
Update rust layers and fix delay in pinch zoom
This commit is contained in:
commit
35b626e592
3 changed files with 5 additions and 1 deletions
|
@ -223,6 +223,7 @@ impl IOCompositor {
|
||||||
// If a pinch-zoom happened recently, ask for tiles at the new resolution
|
// 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 {
|
if self.zoom_action && precise_time_s() - self.zoom_time > 0.3 {
|
||||||
self.zoom_action = false;
|
self.zoom_action = false;
|
||||||
|
self.scene.mark_layer_contents_as_changed_recursively();
|
||||||
self.send_buffer_requests_for_all_layers();
|
self.send_buffer_requests_for_all_layers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -372,6 +372,7 @@ impl<C:RenderListener + Send> RenderTask<C> {
|
||||||
buffer.resolution = scale;
|
buffer.resolution = scale;
|
||||||
buffer.native_surface.mark_wont_leak();
|
buffer.native_surface.mark_wont_leak();
|
||||||
buffer.painted_with_cpu = true;
|
buffer.painted_with_cpu = true;
|
||||||
|
buffer.content_age = tile.content_age;
|
||||||
buffer
|
buffer
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
|
@ -391,6 +392,7 @@ impl<C:RenderListener + Send> RenderTask<C> {
|
||||||
resolution: scale,
|
resolution: scale,
|
||||||
stride: (width * 4) as uint,
|
stride: (width * 4) as uint,
|
||||||
painted_with_cpu: true,
|
painted_with_cpu: true,
|
||||||
|
content_age: tile.content_age,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -422,6 +424,7 @@ impl<C:RenderListener + Send> RenderTask<C> {
|
||||||
resolution: scale,
|
resolution: scale,
|
||||||
stride: (width * 4) as uint,
|
stride: (width * 4) as uint,
|
||||||
painted_with_cpu: false,
|
painted_with_cpu: false,
|
||||||
|
content_age: tile.content_age,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 016b896f385bea119d13d6c2a13208a4c4b8b252
|
Subproject commit 5c167a7f739553dff01d3d6cba25e344058f77a1
|
Loading…
Add table
Add a link
Reference in a new issue