Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_RESOURCES_TILE_MANAGER_H_ | 5 #ifndef CC_RESOURCES_TILE_MANAGER_H_ |
| 6 #define CC_RESOURCES_TILE_MANAGER_H_ | 6 #define CC_RESOURCES_TILE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <utility> | 11 #include <utility> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "cc/base/ref_counted_managed.h" | 17 #include "cc/base/ref_counted_managed.h" |
| 18 #include "cc/base/unique_notifier.h" | 18 #include "cc/base/unique_notifier.h" |
| 19 #include "cc/debug/rendering_stats_instrumentation.h" | 19 #include "cc/debug/rendering_stats_instrumentation.h" |
| 20 #include "cc/layers/picture_layer_impl.h" | 20 #include "cc/layers/picture_layer_impl.h" |
|
reveman
2014/07/09 02:21:09
if possible, could you forward declare PictureLaye
vmpstr
2014/07/09 18:35:38
Done.
| |
| 21 #include "cc/resources/managed_tile_state.h" | 21 #include "cc/resources/managed_tile_state.h" |
| 22 #include "cc/resources/memory_history.h" | 22 #include "cc/resources/memory_history.h" |
| 23 #include "cc/resources/picture_pile_impl.h" | 23 #include "cc/resources/picture_pile_impl.h" |
| 24 #include "cc/resources/prioritized_tile_set.h" | |
| 25 #include "cc/resources/rasterizer.h" | 24 #include "cc/resources/rasterizer.h" |
| 26 #include "cc/resources/resource_pool.h" | 25 #include "cc/resources/resource_pool.h" |
| 27 #include "cc/resources/tile.h" | 26 #include "cc/resources/tile.h" |
| 27 #include "cc/resources/tile_priority_queue.h" | |
| 28 | 28 |
| 29 namespace cc { | 29 namespace cc { |
| 30 class ResourceProvider; | 30 class ResourceProvider; |
| 31 | 31 |
| 32 class CC_EXPORT TileManagerClient { | 32 class CC_EXPORT TileManagerClient { |
| 33 public: | 33 public: |
| 34 // Returns the set of layers that the tile manager should consider for raster. | 34 // Returns the set of layers that the tile manager should consider for raster. |
| 35 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() = 0; | 35 virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() const = 0; |
|
reveman
2014/07/09 02:21:09
Note: this was added with the assumption that we'd
vmpstr
2014/07/09 18:35:38
Done.
| |
| 36 | 36 |
| 37 // Called when all tiles marked as required for activation are ready to draw. | 37 // Called when all tiles marked as required for activation are ready to draw. |
| 38 virtual void NotifyReadyToActivate() = 0; | 38 virtual void NotifyReadyToActivate() = 0; |
| 39 | 39 |
| 40 // Called when the visible representation of a tile might have changed. Some | 40 // Called when the visible representation of a tile might have changed. Some |
| 41 // examples are: | 41 // examples are: |
| 42 // - Tile version initialized. | 42 // - Tile version initialized. |
| 43 // - Tile resources freed. | 43 // - Tile resources freed. |
| 44 // - Tile marked for on-demand raster. | 44 // - Tile marked for on-demand raster. |
| 45 virtual void NotifyTileStateChanged(const Tile* tile) = 0; | 45 virtual void NotifyTileStateChanged(const Tile* tile) = 0; |
| 46 | 46 |
| 47 virtual RasterTileQueue* GetRasterQueue(TreePriority tree_priority) = 0; | |
| 48 virtual EvictionTileQueue* GetEvictionQueue(TreePriority tree_priority) = 0; | |
|
reveman
2014/07/09 02:21:09
Can we pass these queues to the ctor instead? If t
vmpstr
2014/07/09 18:35:38
In the constructor of tile manager? That change wo
reveman
2014/07/09 20:47:51
Yes, having the tile manager call Prepare() would
vmpstr
2014/07/09 22:46:50
Let's assume that we're going to work with 2 queue
reveman
2014/07/10 11:28:23
Ah! I forgot the reason we were using iterators an
| |
| 49 | |
| 47 protected: | 50 protected: |
| 48 virtual ~TileManagerClient() {} | 51 virtual ~TileManagerClient() {} |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 struct RasterTaskCompletionStats { | 54 struct RasterTaskCompletionStats { |
| 52 RasterTaskCompletionStats(); | 55 RasterTaskCompletionStats(); |
| 53 | 56 |
| 54 size_t completed_count; | 57 size_t completed_count; |
| 55 size_t canceled_count; | 58 size_t canceled_count; |
| 56 }; | 59 }; |
| 57 scoped_ptr<base::Value> RasterTaskCompletionStatsAsValue( | 60 scoped_ptr<base::Value> RasterTaskCompletionStatsAsValue( |
| 58 const RasterTaskCompletionStats& stats); | 61 const RasterTaskCompletionStats& stats); |
| 59 | 62 |
| 60 // This class manages tiles, deciding which should get rasterized and which | 63 // This class manages tiles, deciding which should get rasterized and which |
| 61 // should no longer have any memory assigned to them. Tile objects are "owned" | 64 // should no longer have any memory assigned to them. Tile objects are "owned" |
| 62 // by layers; they automatically register with the manager when they are | 65 // by layers; they automatically register with the manager when they are |
| 63 // created, and unregister from the manager when they are deleted. | 66 // created, and unregister from the manager when they are deleted. |
| 64 class CC_EXPORT TileManager : public RasterizerClient, | 67 class CC_EXPORT TileManager : public RasterizerClient, |
| 65 public RefCountedManager<Tile> { | 68 public RefCountedManager<Tile> { |
| 66 public: | 69 public: |
| 67 struct CC_EXPORT PairedPictureLayer { | |
| 68 PairedPictureLayer(); | |
| 69 ~PairedPictureLayer(); | |
| 70 | |
| 71 PictureLayerImpl* active_layer; | |
| 72 PictureLayerImpl* pending_layer; | |
| 73 }; | |
| 74 | |
| 75 class CC_EXPORT RasterTileIterator { | |
| 76 public: | |
| 77 RasterTileIterator(TileManager* tile_manager, TreePriority tree_priority); | |
| 78 ~RasterTileIterator(); | |
| 79 | |
| 80 RasterTileIterator& operator++(); | |
| 81 operator bool() const; | |
| 82 Tile* operator*(); | |
| 83 | |
| 84 private: | |
| 85 struct PairedPictureLayerIterator { | |
| 86 PairedPictureLayerIterator(); | |
| 87 ~PairedPictureLayerIterator(); | |
| 88 | |
| 89 Tile* PeekTile(TreePriority tree_priority); | |
| 90 void PopTile(TreePriority tree_priority); | |
| 91 | |
| 92 std::pair<PictureLayerImpl::LayerRasterTileIterator*, WhichTree> | |
| 93 NextTileIterator(TreePriority tree_priority); | |
| 94 | |
| 95 PictureLayerImpl::LayerRasterTileIterator active_iterator; | |
| 96 PictureLayerImpl::LayerRasterTileIterator pending_iterator; | |
| 97 | |
| 98 std::vector<Tile*> returned_shared_tiles; | |
| 99 }; | |
| 100 | |
| 101 class RasterOrderComparator { | |
| 102 public: | |
| 103 explicit RasterOrderComparator(TreePriority tree_priority); | |
| 104 | |
| 105 bool operator()(PairedPictureLayerIterator* a, | |
| 106 PairedPictureLayerIterator* b) const; | |
| 107 | |
| 108 private: | |
| 109 TreePriority tree_priority_; | |
| 110 }; | |
| 111 | |
| 112 std::vector<PairedPictureLayerIterator> paired_iterators_; | |
| 113 std::vector<PairedPictureLayerIterator*> iterator_heap_; | |
| 114 TreePriority tree_priority_; | |
| 115 RasterOrderComparator comparator_; | |
| 116 | |
| 117 DISALLOW_COPY_AND_ASSIGN(RasterTileIterator); | |
| 118 }; | |
| 119 | |
| 120 struct CC_EXPORT EvictionTileIterator { | |
| 121 public: | |
| 122 EvictionTileIterator(); | |
| 123 EvictionTileIterator(TileManager* tile_manager, TreePriority tree_priority); | |
| 124 ~EvictionTileIterator(); | |
| 125 | |
| 126 EvictionTileIterator& operator++(); | |
| 127 operator bool() const; | |
| 128 Tile* operator*(); | |
| 129 | |
| 130 private: | |
| 131 struct PairedPictureLayerIterator { | |
| 132 PairedPictureLayerIterator(); | |
| 133 ~PairedPictureLayerIterator(); | |
| 134 | |
| 135 Tile* PeekTile(TreePriority tree_priority); | |
| 136 void PopTile(TreePriority tree_priority); | |
| 137 | |
| 138 PictureLayerImpl::LayerEvictionTileIterator* NextTileIterator( | |
| 139 TreePriority tree_priority); | |
| 140 | |
| 141 PictureLayerImpl::LayerEvictionTileIterator active_iterator; | |
| 142 PictureLayerImpl::LayerEvictionTileIterator pending_iterator; | |
| 143 | |
| 144 std::vector<Tile*> returned_shared_tiles; | |
| 145 }; | |
| 146 | |
| 147 class EvictionOrderComparator { | |
| 148 public: | |
| 149 explicit EvictionOrderComparator(TreePriority tree_priority); | |
| 150 | |
| 151 bool operator()(PairedPictureLayerIterator* a, | |
| 152 PairedPictureLayerIterator* b) const; | |
| 153 | |
| 154 private: | |
| 155 TreePriority tree_priority_; | |
| 156 }; | |
| 157 | |
| 158 std::vector<PairedPictureLayerIterator> paired_iterators_; | |
| 159 std::vector<PairedPictureLayerIterator*> iterator_heap_; | |
| 160 TreePriority tree_priority_; | |
| 161 EvictionOrderComparator comparator_; | |
| 162 | |
| 163 DISALLOW_COPY_AND_ASSIGN(EvictionTileIterator); | |
| 164 }; | |
| 165 | |
| 166 static scoped_ptr<TileManager> Create( | 70 static scoped_ptr<TileManager> Create( |
| 167 TileManagerClient* client, | 71 TileManagerClient* client, |
| 168 base::SequencedTaskRunner* task_runner, | 72 base::SequencedTaskRunner* task_runner, |
| 169 ResourcePool* resource_pool, | 73 ResourcePool* resource_pool, |
| 170 Rasterizer* rasterizer, | 74 Rasterizer* rasterizer, |
| 171 RenderingStatsInstrumentation* rendering_stats_instrumentation); | 75 RenderingStatsInstrumentation* rendering_stats_instrumentation); |
| 172 virtual ~TileManager(); | 76 virtual ~TileManager(); |
| 173 | 77 |
| 174 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); | 78 void ManageTiles(const GlobalStateThatImpactsTilePriority& state); |
| 175 | 79 |
| 176 // Returns true when visible tiles have been initialized. | 80 // Returns true when visible tiles have been initialized. |
| 177 bool UpdateVisibleTiles(); | 81 bool UpdateVisibleTiles(); |
| 178 | 82 |
| 179 scoped_refptr<Tile> CreateTile(PicturePileImpl* picture_pile, | 83 scoped_refptr<Tile> CreateTile(PicturePileImpl* picture_pile, |
| 180 const gfx::Size& tile_size, | 84 const gfx::Size& tile_size, |
| 181 const gfx::Rect& content_rect, | 85 const gfx::Rect& content_rect, |
| 182 const gfx::Rect& opaque_rect, | 86 const gfx::Rect& opaque_rect, |
| 183 float contents_scale, | 87 float contents_scale, |
| 184 int layer_id, | 88 int layer_id, |
| 185 int source_frame_number, | 89 int source_frame_number, |
| 186 int flags); | 90 int flags); |
| 187 | 91 |
| 188 scoped_ptr<base::Value> BasicStateAsValue() const; | 92 scoped_ptr<base::Value> BasicStateAsValue() const; |
| 189 scoped_ptr<base::Value> AllTilesAsValue() const; | 93 scoped_ptr<base::Value> AllTilesAsValue() const; |
| 190 const MemoryHistory::Entry& memory_stats_from_last_assign() const { | 94 const MemoryHistory::Entry& memory_stats_from_last_assign() const { |
| 191 return memory_stats_from_last_assign_; | 95 return memory_stats_from_last_assign_; |
| 192 } | 96 } |
| 193 | 97 |
| 194 void GetPairedPictureLayers(std::vector<PairedPictureLayer>* layers) const; | |
| 195 | |
| 196 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) { | 98 void InitializeTilesWithResourcesForTesting(const std::vector<Tile*>& tiles) { |
| 197 for (size_t i = 0; i < tiles.size(); ++i) { | 99 for (size_t i = 0; i < tiles.size(); ++i) { |
| 198 ManagedTileState& mts = tiles[i]->managed_state(); | 100 ManagedTileState& mts = tiles[i]->managed_state(); |
| 199 ManagedTileState::TileVersion& tile_version = | 101 ManagedTileState::TileVersion& tile_version = |
| 200 mts.tile_versions[HIGH_QUALITY_RASTER_MODE]; | 102 mts.tile_versions[HIGH_QUALITY_RASTER_MODE]; |
| 201 | 103 |
| 202 tile_version.resource_ = resource_pool_->AcquireResource(gfx::Size(1, 1)); | 104 tile_version.resource_ = |
| 203 | 105 resource_pool_->AcquireResource(tiles[i]->size()); |
| 204 bytes_releasable_ += BytesConsumedIfAllocated(tiles[i]); | |
| 205 ++resources_releasable_; | |
| 206 } | 106 } |
| 207 } | 107 } |
| 208 | 108 |
| 209 void ReleaseTileResourcesForTesting(const std::vector<Tile*>& tiles) { | 109 void ReleaseTileResourcesForTesting(const std::vector<Tile*>& tiles) { |
| 210 for (size_t i = 0; i < tiles.size(); ++i) { | 110 for (size_t i = 0; i < tiles.size(); ++i) { |
| 211 Tile* tile = tiles[i]; | 111 Tile* tile = tiles[i]; |
| 212 for (int mode = 0; mode < NUM_RASTER_MODES; ++mode) { | 112 for (int mode = 0; mode < NUM_RASTER_MODES; ++mode) { |
| 213 FreeResourceForTile(tile, static_cast<RasterMode>(mode)); | 113 FreeResourceForTile(tile, static_cast<RasterMode>(mode)); |
| 214 } | 114 } |
| 215 } | 115 } |
| 216 } | 116 } |
| 217 | 117 |
| 218 void SetGlobalStateForTesting( | 118 void SetGlobalStateForTesting( |
| 219 const GlobalStateThatImpactsTilePriority& state) { | 119 const GlobalStateThatImpactsTilePriority& state) { |
| 220 // Soft limit is used for resource pool such that | 120 global_state_ = state; |
| 221 // memory returns to soft limit after going over. | |
| 222 if (state != global_state_) { | |
| 223 global_state_ = state; | |
| 224 prioritized_tiles_dirty_ = true; | |
| 225 } | |
| 226 } | 121 } |
| 227 | 122 |
| 228 void SetRasterizerForTesting(Rasterizer* rasterizer); | 123 void SetRasterizerForTesting(Rasterizer* rasterizer); |
| 229 | 124 |
| 230 void CleanUpReleasedTilesForTesting() { CleanUpReleasedTiles(); } | 125 void CleanUpReleasedTilesForTesting() { CleanUpReleasedTiles(); } |
| 231 | 126 |
| 232 protected: | 127 protected: |
| 233 TileManager(TileManagerClient* client, | 128 TileManager(TileManagerClient* client, |
| 234 base::SequencedTaskRunner* task_runner, | 129 base::SequencedTaskRunner* task_runner, |
| 235 ResourcePool* resource_pool, | 130 ResourcePool* resource_pool, |
| 236 Rasterizer* rasterizer, | 131 Rasterizer* rasterizer, |
| 237 RenderingStatsInstrumentation* rendering_stats_instrumentation); | 132 RenderingStatsInstrumentation* rendering_stats_instrumentation); |
| 238 | 133 |
| 239 // Methods called by Tile | |
| 240 friend class Tile; | |
| 241 void DidChangeTilePriority(Tile* tile); | |
| 242 | |
| 243 void CleanUpReleasedTiles(); | 134 void CleanUpReleasedTiles(); |
| 244 | 135 |
| 245 // Overriden from RefCountedManager<Tile>: | 136 // Overriden from RefCountedManager<Tile>: |
| 137 friend class Tile; | |
| 246 virtual void Release(Tile* tile) OVERRIDE; | 138 virtual void Release(Tile* tile) OVERRIDE; |
| 247 | 139 |
| 248 // Overriden from RasterizerClient: | 140 // Overriden from RasterizerClient: |
| 249 virtual bool ShouldForceTasksRequiredForActivationToComplete() const OVERRIDE; | 141 virtual bool ShouldForceTasksRequiredForActivationToComplete() const OVERRIDE; |
| 250 virtual void DidFinishRunningTasks() OVERRIDE; | 142 virtual void DidFinishRunningTasks() OVERRIDE; |
| 251 virtual void DidFinishRunningTasksRequiredForActivation() OVERRIDE; | 143 virtual void DidFinishRunningTasksRequiredForActivation() OVERRIDE; |
| 252 | 144 |
| 253 typedef std::vector<Tile*> TileVector; | 145 typedef std::vector<Tile*> TileVector; |
| 254 typedef std::set<Tile*> TileSet; | 146 typedef std::set<Tile*> TileSet; |
| 255 | 147 |
| 256 // Virtual for test | 148 // Virtual for test |
| 257 virtual void ScheduleTasks( | 149 virtual void ScheduleTasks( |
| 258 const TileVector& tiles_that_need_to_be_rasterized); | 150 const TileVector& tiles_that_need_to_be_rasterized); |
| 259 | 151 |
| 260 void AssignGpuMemoryToTiles(PrioritizedTileSet* tiles, | 152 void AssignGpuMemoryToTiles(TileVector* tiles_that_need_to_be_rasterized); |
| 261 TileVector* tiles_that_need_to_be_rasterized); | |
| 262 void GetTilesWithAssignedBins(PrioritizedTileSet* tiles); | |
| 263 | 153 |
| 264 private: | 154 private: |
| 155 class MemoryUsage { | |
| 156 public: | |
| 157 MemoryUsage(); | |
| 158 MemoryUsage(int64 memory_bytes, int resource_count); | |
| 159 | |
| 160 static MemoryUsage FromConfig(const gfx::Size& size, ResourceFormat format); | |
| 161 static MemoryUsage FromTile(const Tile* tile); | |
| 162 | |
| 163 MemoryUsage& operator+=(const MemoryUsage& other); | |
| 164 MemoryUsage& operator-=(const MemoryUsage& other); | |
| 165 MemoryUsage operator-(const MemoryUsage& other); | |
| 166 | |
| 167 bool Exceeds(const MemoryUsage& limit) const; | |
| 168 | |
| 169 int64 memory_bytes() const { return memory_bytes_; } | |
| 170 | |
| 171 private: | |
| 172 int64 memory_bytes_; | |
| 173 int resource_count_; | |
| 174 }; | |
| 175 | |
| 265 void OnImageDecodeTaskCompleted(int layer_id, | 176 void OnImageDecodeTaskCompleted(int layer_id, |
| 266 SkPixelRef* pixel_ref, | 177 SkPixelRef* pixel_ref, |
| 267 bool was_canceled); | 178 bool was_canceled); |
| 268 void OnRasterTaskCompleted(Tile::Id tile, | 179 void OnRasterTaskCompleted(Tile::Id tile, |
| 269 scoped_ptr<ScopedResource> resource, | 180 scoped_ptr<ScopedResource> resource, |
| 270 RasterMode raster_mode, | 181 RasterMode raster_mode, |
| 271 const PicturePileImpl::Analysis& analysis, | 182 const PicturePileImpl::Analysis& analysis, |
| 272 bool was_canceled); | 183 bool was_canceled); |
| 273 | 184 |
| 274 inline size_t BytesConsumedIfAllocated(const Tile* tile) const { | |
| 275 return Resource::MemorySizeBytes(tile->size(), | |
| 276 resource_pool_->resource_format()); | |
| 277 } | |
| 278 | |
| 279 void FreeResourceForTile(Tile* tile, RasterMode mode); | 185 void FreeResourceForTile(Tile* tile, RasterMode mode); |
| 280 void FreeResourcesForTile(Tile* tile); | 186 void FreeResourcesForTile(Tile* tile); |
| 281 void FreeUnusedResourcesForTile(Tile* tile); | 187 void FreeUnusedResourcesForTile(Tile* tile); |
| 282 void FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(Tile* tile); | 188 void FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(Tile* tile); |
| 283 scoped_refptr<ImageDecodeTask> CreateImageDecodeTask(Tile* tile, | 189 scoped_refptr<ImageDecodeTask> CreateImageDecodeTask(Tile* tile, |
| 284 SkPixelRef* pixel_ref); | 190 SkPixelRef* pixel_ref); |
| 285 scoped_refptr<RasterTask> CreateRasterTask(Tile* tile); | 191 scoped_refptr<RasterTask> CreateRasterTask(Tile* tile); |
| 286 void UpdatePrioritizedTileSetIfNeeded(); | |
| 287 | 192 |
| 193 bool FreeTileResourcesUntilUsageIsWithinLimit(EvictionTileQueue* queue, | |
| 194 const MemoryUsage& limit, | |
| 195 MemoryUsage* usage); | |
| 196 bool FreeTileResourcesWithLowerPriorityUntilUsageIsWithinLimit( | |
| 197 EvictionTileQueue* queue, | |
| 198 const MemoryUsage& limit, | |
| 199 const TilePriority& other_priority, | |
| 200 MemoryUsage* usage); | |
| 201 bool TilePriorityViolatesMemoryPolicy(const TilePriority& priority); | |
| 288 bool IsReadyToActivate() const; | 202 bool IsReadyToActivate() const; |
| 289 void CheckIfReadyToActivate(); | 203 void CheckIfReadyToActivate(); |
| 290 | 204 |
| 291 TileManagerClient* client_; | 205 TileManagerClient* client_; |
| 292 scoped_refptr<base::SequencedTaskRunner> task_runner_; | 206 scoped_refptr<base::SequencedTaskRunner> task_runner_; |
| 293 ResourcePool* resource_pool_; | 207 ResourcePool* resource_pool_; |
| 294 Rasterizer* rasterizer_; | 208 Rasterizer* rasterizer_; |
| 295 GlobalStateThatImpactsTilePriority global_state_; | 209 GlobalStateThatImpactsTilePriority global_state_; |
| 296 | 210 |
| 297 typedef base::hash_map<Tile::Id, Tile*> TileMap; | 211 typedef base::hash_map<Tile::Id, Tile*> TileMap; |
| 298 TileMap tiles_; | 212 TileMap tiles_; |
| 299 | 213 |
| 300 PrioritizedTileSet prioritized_tiles_; | 214 bool all_tiles_that_need_to_be_rasterized_are_scheduled_; |
| 301 bool prioritized_tiles_dirty_; | |
| 302 | 215 |
| 303 bool all_tiles_that_need_to_be_rasterized_have_memory_; | |
| 304 bool all_tiles_required_for_activation_have_memory_; | |
| 305 | |
| 306 size_t bytes_releasable_; | |
| 307 size_t resources_releasable_; | |
| 308 | |
| 309 bool ever_exceeded_memory_budget_; | |
| 310 MemoryHistory::Entry memory_stats_from_last_assign_; | 216 MemoryHistory::Entry memory_stats_from_last_assign_; |
| 311 | 217 |
| 312 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 218 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 313 | 219 |
| 314 bool did_initialize_visible_tile_; | 220 bool did_initialize_visible_tile_; |
| 315 bool did_check_for_completed_tasks_since_last_schedule_tasks_; | 221 bool did_check_for_completed_tasks_since_last_schedule_tasks_; |
| 316 | 222 |
| 317 typedef base::hash_map<uint32_t, scoped_refptr<ImageDecodeTask> > | 223 typedef base::hash_map<uint32_t, scoped_refptr<ImageDecodeTask> > |
| 318 PixelRefTaskMap; | 224 PixelRefTaskMap; |
| 319 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; | 225 typedef base::hash_map<int, PixelRefTaskMap> LayerPixelRefTaskMap; |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 334 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; | 240 std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_; |
| 335 | 241 |
| 336 UniqueNotifier ready_to_activate_check_notifier_; | 242 UniqueNotifier ready_to_activate_check_notifier_; |
| 337 | 243 |
| 338 DISALLOW_COPY_AND_ASSIGN(TileManager); | 244 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 339 }; | 245 }; |
| 340 | 246 |
| 341 } // namespace cc | 247 } // namespace cc |
| 342 | 248 |
| 343 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 249 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
| OLD | NEW |