Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Unified Diff: cc/trees/layer_tree_settings.cc

Issue 1939963002: cc: Move prepaint region calculations to the tiling set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | cc/trees/layer_tree_settings_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_settings.cc
diff --git a/cc/trees/layer_tree_settings.cc b/cc/trees/layer_tree_settings.cc
index 26a54623a48fdfa91a1548db8369acd51cf60af7..054359356fd799e8a4fe3b0d186cbe0126030e00 100644
--- a/cc/trees/layer_tree_settings.cc
+++ b/cc/trees/layer_tree_settings.cc
@@ -86,7 +86,7 @@ LayerTreeSettings::LayerTreeSettings()
// 3000 pixels should give sufficient area for prepainting.
tiling_interest_area_padding(3000),
skewport_target_time_in_seconds(1.0f),
- skewport_extrapolation_limit_in_content_pixels(2000),
+ skewport_extrapolation_limit_in_screen_pixels(2000),
max_memory_for_prepaint_percentage(100),
use_zero_copy(false),
use_partial_raster(false),
@@ -152,8 +152,8 @@ bool LayerTreeSettings::operator==(const LayerTreeSettings& other) const {
tiling_interest_area_padding == other.tiling_interest_area_padding &&
skewport_target_time_in_seconds ==
other.skewport_target_time_in_seconds &&
- skewport_extrapolation_limit_in_content_pixels ==
- other.skewport_extrapolation_limit_in_content_pixels &&
+ skewport_extrapolation_limit_in_screen_pixels ==
+ other.skewport_extrapolation_limit_in_screen_pixels &&
max_memory_for_prepaint_percentage ==
other.max_memory_for_prepaint_percentage &&
use_zero_copy == other.use_zero_copy &&
@@ -212,8 +212,8 @@ void LayerTreeSettings::ToProtobuf(proto::LayerTreeSettings* proto) const {
proto->mutable_minimum_occlusion_tracking_size());
proto->set_tiling_interest_area_padding(tiling_interest_area_padding);
proto->set_skewport_target_time_in_seconds(skewport_target_time_in_seconds);
- proto->set_skewport_extrapolation_limit_in_content_pixels(
- skewport_extrapolation_limit_in_content_pixels);
+ proto->set_skewport_extrapolation_limit_in_screen_pixels(
+ skewport_extrapolation_limit_in_screen_pixels);
proto->set_max_memory_for_prepaint_percentage(
max_memory_for_prepaint_percentage);
proto->set_use_zero_copy(use_zero_copy);
@@ -273,8 +273,8 @@ void LayerTreeSettings::FromProtobuf(const proto::LayerTreeSettings& proto) {
ProtoToSize(proto.minimum_occlusion_tracking_size());
tiling_interest_area_padding = proto.tiling_interest_area_padding();
skewport_target_time_in_seconds = proto.skewport_target_time_in_seconds();
- skewport_extrapolation_limit_in_content_pixels =
- proto.skewport_extrapolation_limit_in_content_pixels();
+ skewport_extrapolation_limit_in_screen_pixels =
+ proto.skewport_extrapolation_limit_in_screen_pixels();
max_memory_for_prepaint_percentage =
proto.max_memory_for_prepaint_percentage();
use_zero_copy = proto.use_zero_copy();
« no previous file with comments | « cc/trees/layer_tree_settings.h ('k') | cc/trees/layer_tree_settings_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698