diff options
author | vmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 22:30:31 +0000 |
---|---|---|
committer | vmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 22:30:31 +0000 |
commit | 2db9225e3ea512a197021a22e8abd110e4f024d4 (patch) | |
tree | cdd975dee7917c6a34f0b99f1e16de933e297737 /cc/test/fake_picture_pile_impl.cc | |
parent | e851d3c0b85912c4777017d948717a21122bafcb (diff) | |
download | chromium_src-2db9225e3ea512a197021a22e8abd110e4f024d4.zip chromium_src-2db9225e3ea512a197021a22e8abd110e4f024d4.tar.gz chromium_src-2db9225e3ea512a197021a22e8abd110e4f024d4.tar.bz2 |
cc: Added invalidation frequency for picture pile.
This patch keeps track of the invalidation frequency of each of
the picture pile grid cells. When the invalidation goes over a
certain threshold (0.75) and the grid cell is further than
specified amount of pixels from the viewport (512), then the
cell is not re-recorded. For a cell that was previously skipped,
either frequency dropping below the threshold or it coming closer
than 512 pixels will cause it to re-record again.
BUG=254320
Review URL: https://codereview.chromium.org/106393003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239893 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_picture_pile_impl.cc')
-rw-r--r-- | cc/test/fake_picture_pile_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/test/fake_picture_pile_impl.cc b/cc/test/fake_picture_pile_impl.cc index 88c7d38..bc751ed 100644 --- a/cc/test/fake_picture_pile_impl.cc +++ b/cc/test/fake_picture_pile_impl.cc @@ -78,7 +78,7 @@ void FakePicturePileImpl::AddRecordingAt(int x, int y) { scoped_refptr<Picture> picture(Picture::Create(bounds)); picture->Record(&client_, tile_grid_info_); picture->GatherPixelRefs(tile_grid_info_); - picture_map_[std::pair<int, int>(x, y)].picture = picture; + picture_map_[std::pair<int, int>(x, y)].SetPicture(picture); EXPECT_TRUE(HasRecordingAt(x, y)); UpdateRecordedRegion(); |