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

Unified Diff: cc/test/fake_picture_layer_impl.cc

Issue 819643004: Cache viewport rect for tile priority in UpdateTiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cache the return value of GetViewportForTilePriorityInContentSpace Created 5 years, 11 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
« cc/test/fake_picture_layer_impl.h ('K') | « cc/test/fake_picture_layer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_impl.cc
diff --git a/cc/test/fake_picture_layer_impl.cc b/cc/test/fake_picture_layer_impl.cc
index 2d2e329958f63eba89fe3ac4fe45dd77ee90d274..e7205bae420ddfc7484dd475acb6455a9e38a5f0 100644
--- a/cc/test/fake_picture_layer_impl.cc
+++ b/cc/test/fake_picture_layer_impl.cc
@@ -201,7 +201,7 @@ size_t FakePictureLayerImpl::CountTilesRequired(
if (visible_rect_for_tile_priority_.IsEmpty())
return 0;
- gfx::Rect rect = GetViewportForTilePriorityInContentSpace();
+ gfx::Rect rect = GetViewportForTilePriorityInContentSpaceForTesting();
danakj 2015/01/21 18:47:40 use the viewport_rect_for_tile_priority_in_content
hush (inactive) 2015/01/21 22:21:10 Done.
rect.Intersect(visible_rect_for_tile_priority_);
size_t count = 0;
« cc/test/fake_picture_layer_impl.h ('K') | « cc/test/fake_picture_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698