diff options
author | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-03 05:32:59 +0000 |
---|---|---|
committer | reveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-03 05:32:59 +0000 |
commit | 87564e285ede8b76d81f29a608d4adf40decee91 (patch) | |
tree | 39195ca67cff15c242289af5e02faab009c859dd /cc/resources/managed_tile_state.h | |
parent | c9120764d420d2ffbd3c14f30399b30fd9aa37a8 (diff) | |
download | chromium_src-87564e285ede8b76d81f29a608d4adf40decee91.zip chromium_src-87564e285ede8b76d81f29a608d4adf40decee91.tar.gz chromium_src-87564e285ede8b76d81f29a608d4adf40decee91.tar.bz2 |
cc: Remove TileManager::GatherPixelRefsForTile.
This function is no longer needed as it's now cheap to iterate over
a tile's pixel refs. This also moves the recording of pixel ref
gathering related stats to the Picture class and the main thread
where the real cost is paid.
BUG=237593
Review URL: https://chromiumcodereview.appspot.com/14712006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198068 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/managed_tile_state.h')
-rw-r--r-- | cc/resources/managed_tile_state.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cc/resources/managed_tile_state.h b/cc/resources/managed_tile_state.h index 5eb1de2..f925053 100644 --- a/cc/resources/managed_tile_state.h +++ b/cc/resources/managed_tile_state.h @@ -5,8 +5,7 @@ #ifndef CC_RESOURCES_MANAGED_TILE_STATE_H_ #define CC_RESOURCES_MANAGED_TILE_STATE_H_ -#include <list> - +#include "base/hash_tables.h" #include "base/memory/scoped_ptr.h" #include "cc/resources/platform_color.h" #include "cc/resources/resource_pool.h" @@ -111,8 +110,8 @@ class CC_EXPORT ManagedTileState { scoped_ptr<base::Value> AsValue() const; // Persisted state: valid all the time. - bool need_to_gather_pixel_refs; - std::list<skia::LazyPixelRef*> pending_pixel_refs; + typedef base::hash_set<uint32_t> PixelRefSet; + PixelRefSet decoded_pixel_refs; DrawingInfo drawing_info; PicturePileImpl::Analysis picture_pile_analysis; bool picture_pile_analyzed; |