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

Side by Side Diff: cc/tiles/tile_manager.h

Issue 1531013004: cc: Do solid color analysis before scheduling tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test updated. Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/tiles/tile.h ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_TILES_TILE_MANAGER_H_ 5 #ifndef CC_TILES_TILE_MANAGER_H_
6 #define CC_TILES_TILE_MANAGER_H_ 6 #define CC_TILES_TILE_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 int64_t memory_bytes() const { return memory_bytes_; } 235 int64_t memory_bytes() const { return memory_bytes_; }
236 236
237 private: 237 private:
238 int64_t memory_bytes_; 238 int64_t memory_bytes_;
239 int resource_count_; 239 int resource_count_;
240 }; 240 };
241 241
242 void OnRasterTaskCompleted( 242 void OnRasterTaskCompleted(
243 Tile::Id tile, 243 Tile::Id tile,
244 Resource* resource, 244 Resource* resource,
245 const DisplayListRasterSource::SolidColorAnalysis& analysis,
246 bool was_canceled); 245 bool was_canceled);
247 void UpdateTileDrawInfo(
248 Tile* tile,
249 Resource* resource,
250 const DisplayListRasterSource::SolidColorAnalysis& analysis);
251 246
252 void FreeResourcesForTile(Tile* tile); 247 void FreeResourcesForTile(Tile* tile);
253 void FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(Tile* tile); 248 void FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(Tile* tile);
254 scoped_refptr<RasterTask> CreateRasterTask( 249 scoped_refptr<RasterTask> CreateRasterTask(
255 const PrioritizedTile& prioritized_tile); 250 const PrioritizedTile& prioritized_tile);
256 251
257 scoped_ptr<EvictionTilePriorityQueue> 252 scoped_ptr<EvictionTilePriorityQueue>
258 FreeTileResourcesUntilUsageIsWithinLimit( 253 FreeTileResourcesUntilUsageIsWithinLimit(
259 scoped_ptr<EvictionTilePriorityQueue> eviction_priority_queue, 254 scoped_ptr<EvictionTilePriorityQueue> eviction_priority_queue,
260 const MemoryUsage& limit, 255 const MemoryUsage& limit,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 uint64_t next_tile_id_; 332 uint64_t next_tile_id_;
338 333
339 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_; 334 base::WeakPtrFactory<TileManager> task_set_finished_weak_ptr_factory_;
340 335
341 DISALLOW_COPY_AND_ASSIGN(TileManager); 336 DISALLOW_COPY_AND_ASSIGN(TileManager);
342 }; 337 };
343 338
344 } // namespace cc 339 } // namespace cc
345 340
346 #endif // CC_TILES_TILE_MANAGER_H_ 341 #endif // CC_TILES_TILE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/tiles/tile.h ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698