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

Unified Diff: cc/tiles/tile_manager.h

Issue 1866043006: cc: Remove ScheduleOnOriginThread() and CompleteOnOriginThread(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 4 years, 8 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
Index: cc/tiles/tile_manager.h
diff --git a/cc/tiles/tile_manager.h b/cc/tiles/tile_manager.h
index 6b5745ea638562a74456b1b41282d7d6b21c1132..56b590391b6720b35c86536025aac8eb0020f454 100644
--- a/cc/tiles/tile_manager.h
+++ b/cc/tiles/tile_manager.h
@@ -241,10 +241,10 @@ class CC_EXPORT TileManager {
int resource_count_;
};
- void OnRasterTaskCompleted(
- Tile::Id tile,
- Resource* resource,
- bool was_canceled);
+ void CheckForCompletedTasks();
+ void CompleteRasterTask(Tile::Id tile_id,
+ Resource* resource,
+ bool was_canceled);
void FreeResourcesForTile(Tile* tile);
void FreeResourcesForTileAndNotifyClientIfTileWasReadyToDraw(Tile* tile);
@@ -305,6 +305,7 @@ class CC_EXPORT TileManager {
std::vector<Tile*> released_tiles_;
+ Task::Vector raster_tasks_;
std::vector<scoped_refptr<TileTask>> orphan_tasks_;
TaskGraph graph_;

Powered by Google App Engine
This is Rietveld 408576698