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

Unified Diff: cc/resources/picture_layer_tiling_set.cc

Issue 1126793002: cc: Make tiling interest rect calc based on viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove switch entry from chromeos cmdline. Created 5 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/resources/picture_layer_tiling_set.h ('k') | cc/resources/picture_layer_tiling_set_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling_set.cc
diff --git a/cc/resources/picture_layer_tiling_set.cc b/cc/resources/picture_layer_tiling_set.cc
index 6f540bfacfb93f0fdbd9f924d1cf25a446d1b077..309e4f5342910743203abc2c8ff40ef5eb394bba 100644
--- a/cc/resources/picture_layer_tiling_set.cc
+++ b/cc/resources/picture_layer_tiling_set.cc
@@ -31,11 +31,11 @@ inline float LargerRatio(float float1, float float2) {
scoped_ptr<PictureLayerTilingSet> PictureLayerTilingSet::Create(
WhichTree tree,
PictureLayerTilingClient* client,
- size_t max_tiles_for_interest_area,
+ float tiling_interest_area_viewport_multiplier,
float skewport_target_time_in_seconds,
int skewport_extrapolation_limit_in_content_pixels) {
return make_scoped_ptr(new PictureLayerTilingSet(
- tree, client, max_tiles_for_interest_area,
+ tree, client, tiling_interest_area_viewport_multiplier,
skewport_target_time_in_seconds,
skewport_extrapolation_limit_in_content_pixels));
}
@@ -43,10 +43,11 @@ scoped_ptr<PictureLayerTilingSet> PictureLayerTilingSet::Create(
PictureLayerTilingSet::PictureLayerTilingSet(
WhichTree tree,
PictureLayerTilingClient* client,
- size_t max_tiles_for_interest_area,
+ float tiling_interest_area_viewport_multiplier,
float skewport_target_time_in_seconds,
int skewport_extrapolation_limit_in_content_pixels)
- : max_tiles_for_interest_area_(max_tiles_for_interest_area),
+ : tiling_interest_area_viewport_multiplier_(
+ tiling_interest_area_viewport_multiplier),
skewport_target_time_in_seconds_(skewport_target_time_in_seconds),
skewport_extrapolation_limit_in_content_pixels_(
skewport_extrapolation_limit_in_content_pixels),
@@ -76,7 +77,8 @@ void PictureLayerTilingSet::CopyTilingsAndPropertiesFromPendingTwin(
if (!this_tiling) {
scoped_ptr<PictureLayerTiling> new_tiling = PictureLayerTiling::Create(
tree_, contents_scale, raster_source, client_,
- max_tiles_for_interest_area_, skewport_target_time_in_seconds_,
+ tiling_interest_area_viewport_multiplier_,
+ skewport_target_time_in_seconds_,
skewport_extrapolation_limit_in_content_pixels_);
tilings_.push_back(new_tiling.Pass());
this_tiling = tilings_.back();
@@ -264,7 +266,8 @@ PictureLayerTiling* PictureLayerTilingSet::AddTiling(
tilings_.push_back(PictureLayerTiling::Create(
tree_, contents_scale, raster_source, client_,
- max_tiles_for_interest_area_, skewport_target_time_in_seconds_,
+ tiling_interest_area_viewport_multiplier_,
+ skewport_target_time_in_seconds_,
skewport_extrapolation_limit_in_content_pixels_));
PictureLayerTiling* appended = tilings_.back();
« no previous file with comments | « cc/resources/picture_layer_tiling_set.h ('k') | cc/resources/picture_layer_tiling_set_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698