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

Unified Diff: cc/resources/tile_manager.h

Issue 1130123003: cc: Separate the priority from the tile and put in new PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 7 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/resources/tile.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager.h
diff --git a/cc/resources/tile_manager.h b/cc/resources/tile_manager.h
index b27fa8642999e14dcfbedb153a6edcac3bc616c1..1866026fe312cc1c67bdc5720dba73a37cc4d744 100644
--- a/cc/resources/tile_manager.h
+++ b/cc/resources/tile_manager.h
@@ -198,16 +198,17 @@ class CC_EXPORT TileManager : public TileTaskRunnerClient {
void DidFinishRunningTileTasks(TaskSet task_set) override;
TaskSetCollection TasksThatShouldBeForcedToComplete() const override;
- typedef std::vector<Tile*> TileVector;
+ typedef std::vector<PrioritizedTile> PrioritizedTileVector;
typedef std::set<Tile*> TileSet;
// Virtual for test
virtual void ScheduleTasks(
- const TileVector& tiles_that_need_to_be_rasterized);
+ const PrioritizedTileVector& tiles_that_need_to_be_rasterized);
- void AssignGpuMemoryToTiles(RasterTilePriorityQueue* raster_priority_queue,
- size_t scheduled_raser_task_limit,
- TileVector* tiles_that_need_to_be_rasterized);
+ void AssignGpuMemoryToTiles(
+ RasterTilePriorityQueue* raster_priority_queue,
+ size_t scheduled_raser_task_limit,
+ PrioritizedTileVector* tiles_that_need_to_be_rasterized);
private:
class MemoryUsage {
@@ -245,7 +246,8 @@ class CC_EXPORT TileManager : public TileTaskRunnerClient {
void FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(Tile* tile);
scoped_refptr<ImageDecodeTask> CreateImageDecodeTask(Tile* tile,
SkPixelRef* pixel_ref);
- scoped_refptr<RasterTask> CreateRasterTask(Tile* tile);
+ scoped_refptr<RasterTask> CreateRasterTask(
+ const PrioritizedTile& prioritized_tile);
scoped_ptr<EvictionTilePriorityQueue>
FreeTileResourcesUntilUsageIsWithinLimit(
« no previous file with comments | « cc/resources/tile.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698