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

Unified Diff: cc/tiles/tile_manager.h

Issue 2017453004: cc: Send notification of tasks completion directly without scheduling. Base URL: https://chromium.googlesource.com/chromium/src.git@worker_origin_split_4
Patch Set: 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
« no previous file with comments | « no previous file | cc/tiles/tile_manager.cc » ('j') | cc/tiles/tile_manager.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager.h
diff --git a/cc/tiles/tile_manager.h b/cc/tiles/tile_manager.h
index 7c45c8f1786e4cce9f43bad2717b2e25e3ddc209..3ae70cf1cae17d3a7480d32fba734d1dde30031d 100644
--- a/cc/tiles/tile_manager.h
+++ b/cc/tiles/tile_manager.h
@@ -268,7 +268,9 @@ class CC_EXPORT TileManager {
bool TilePriorityViolatesMemoryPolicy(const TilePriority& priority);
bool AreRequiredTilesReadyToDraw(RasterTilePriorityQueue::Type type) const;
void CheckIfMoreTilesNeedToBePrepared();
- void CheckAndIssueSignals();
+ void CheckAndNotifyReadyToActivate();
+ void CheckAndNotifyReadyToDraw();
+ void CheckAndNotifyAllTileTasksCompleted();
bool MarkTilesOutOfMemory(
std::unique_ptr<RasterTilePriorityQueue> queue) const;
@@ -316,23 +318,6 @@ class CC_EXPORT TileManager {
scoped_refptr<TileTask> required_for_draw_done_task_;
scoped_refptr<TileTask> all_done_task_;
- UniqueNotifier more_tiles_need_prepare_check_notifier_;
-
- struct Signals {
- Signals();
-
- void reset();
-
- bool ready_to_activate;
- bool did_notify_ready_to_activate;
- bool ready_to_draw;
- bool did_notify_ready_to_draw;
- bool all_tile_tasks_completed;
- bool did_notify_all_tile_tasks_completed;
- } signals_;
-
- UniqueNotifier signals_check_notifier_;
-
bool has_scheduled_tile_tasks_;
uint64_t prepare_tiles_count_;
« no previous file with comments | « no previous file | cc/tiles/tile_manager.cc » ('j') | cc/tiles/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698