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

Unified Diff: cc/test/fake_picture_layer_impl.h

Issue 819643004: Cache viewport rect for tile priority in UpdateTiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_impl.h
diff --git a/cc/test/fake_picture_layer_impl.h b/cc/test/fake_picture_layer_impl.h
index 5795d5588ede6018d75f7e24a7464c39cadcbbba..a0e16e8345671277ad0f698daf5f6d4a15ab38c7 100644
--- a/cc/test/fake_picture_layer_impl.h
+++ b/cc/test/fake_picture_layer_impl.h
@@ -77,7 +77,6 @@ class FakePictureLayerImpl : public PictureLayerImpl {
using PictureLayerImpl::CleanUpTilingsOnActiveLayer;
using PictureLayerImpl::CanHaveTilings;
using PictureLayerImpl::MinimumContentsScale;
- using PictureLayerImpl::GetViewportForTilePriorityInContentSpace;
using PictureLayerImpl::SanityCheckTilingState;
using PictureLayerImpl::GetRecycledTwinLayer;
using PictureLayerImpl::UpdateRasterSource;
@@ -108,6 +107,10 @@ class FakePictureLayerImpl : public PictureLayerImpl {
return visible_rect_for_tile_priority_;
}
+ gfx::Rect viewport_rect_for_tile_priority_in_content_space() {
+ return viewport_rect_for_tile_priority_in_content_space_;
+ }
+
void set_fixed_tile_size(const gfx::Size& size) { fixed_tile_size_ = size; }
void CreateAllTiles();
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/test/fake_picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698