mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Rename Compositor::ask_for_tiles to send_buffer_requests_for_all_layers
This name better reflects what the method does.
This commit is contained in:
parent
c60c72fb15
commit
d3c0d8d6f8
1 changed files with 7 additions and 8 deletions
|
@ -223,7 +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.ask_for_tiles();
|
self.send_buffer_requests_for_all_layers();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -438,7 +438,7 @@ impl IOCompositor {
|
||||||
|
|
||||||
self.scroll_layer_to_fragment_point_if_necessary(layer_properties.pipeline_id,
|
self.scroll_layer_to_fragment_point_if_necessary(layer_properties.pipeline_id,
|
||||||
layer_properties.id);
|
layer_properties.id);
|
||||||
self.ask_for_tiles();
|
self.send_buffer_requests_for_all_layers();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create_or_update_descendant_layer(&mut self, mut layer_properties: LayerProperties) {
|
fn create_or_update_descendant_layer(&mut self, mut layer_properties: LayerProperties) {
|
||||||
|
@ -448,7 +448,7 @@ impl IOCompositor {
|
||||||
}
|
}
|
||||||
self.scroll_layer_to_fragment_point_if_necessary(layer_properties.pipeline_id,
|
self.scroll_layer_to_fragment_point_if_necessary(layer_properties.pipeline_id,
|
||||||
layer_properties.id);
|
layer_properties.id);
|
||||||
self.ask_for_tiles();
|
self.send_buffer_requests_for_all_layers();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create_descendant_layer(&self, layer_properties: LayerProperties) {
|
fn create_descendant_layer(&self, layer_properties: LayerProperties) {
|
||||||
|
@ -534,7 +534,7 @@ impl IOCompositor {
|
||||||
};
|
};
|
||||||
|
|
||||||
if should_ask_for_tiles {
|
if should_ask_for_tiles {
|
||||||
self.ask_for_tiles();
|
self.send_buffer_requests_for_all_layers();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -602,7 +602,7 @@ impl IOCompositor {
|
||||||
|
|
||||||
if ask {
|
if ask {
|
||||||
self.recomposite_if(move);
|
self.recomposite_if(move);
|
||||||
self.ask_for_tiles();
|
self.send_buffer_requests_for_all_layers();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -735,7 +735,7 @@ impl IOCompositor {
|
||||||
None => { }
|
None => { }
|
||||||
}
|
}
|
||||||
self.recomposite_if(scroll);
|
self.recomposite_if(scroll);
|
||||||
self.ask_for_tiles();
|
self.send_buffer_requests_for_all_layers();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn device_pixels_per_screen_px(&self) -> ScaleFactor<ScreenPx, DevicePixel, f32> {
|
fn device_pixels_per_screen_px(&self) -> ScaleFactor<ScreenPx, DevicePixel, f32> {
|
||||||
|
@ -853,8 +853,7 @@ impl IOCompositor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get BufferRequests from each layer.
|
fn send_buffer_requests_for_all_layers(&mut self) {
|
||||||
fn ask_for_tiles(&mut self) {
|
|
||||||
let mut layers_and_requests = Vec::new();
|
let mut layers_and_requests = Vec::new();
|
||||||
self.scene.get_buffer_requests(&mut layers_and_requests,
|
self.scene.get_buffer_requests(&mut layers_and_requests,
|
||||||
Rect(Point2D(0f32, 0f32),
|
Rect(Point2D(0f32, 0f32),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue