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

Unified Diff: cc/tiles/tile_manager.h

Issue 2003353003: cc: Ensure members needed on task completion get called on valid thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_task_new_state_in_dtor
Patch Set: another approach, feedback Created 4 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
Index: cc/tiles/tile_manager.h
diff --git a/cc/tiles/tile_manager.h b/cc/tiles/tile_manager.h
index b522423415fd50d29a53ec3c5adb95b15f2a11b6..7c45c8f1786e4cce9f43bad2717b2e25e3ddc209 100644
--- a/cc/tiles/tile_manager.h
+++ b/cc/tiles/tile_manager.h
@@ -197,10 +197,10 @@ class CC_EXPORT TileManager {
return has_scheduled_tile_tasks_;
}
- void OnRasterTaskCompleted(std::unique_ptr<RasterBuffer> raster_buffer,
- Tile* tile,
- Resource* resource,
- bool was_canceled);
+ static void OnRasterTaskCompleted(
+ std::unique_ptr<RasterBuffer> raster_buffer,
+ TileTask::TaskCompletionInfo* completion_info,
+ bool was_canceled);
protected:
TileManager(TileManagerClient* client,
« no previous file with comments | « cc/raster/tile_task.h ('k') | cc/tiles/tile_manager.cc » ('j') | cc/tiles/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698