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

Unified Diff: cc/resources/tile_manager.h

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 f5bea383141a38c325f695ed2247e9b7561331a9..92821e0e8852e0f37534c3518a494da5869b3f20 100644
--- a/cc/resources/tile_manager.h
+++ b/cc/resources/tile_manager.h
@@ -47,6 +47,9 @@ class CC_EXPORT TileManagerClient {
// Called when all tiles marked as required for activation are ready to draw.
virtual void NotifyReadyToActivate() = 0;
+ // Called when all tiles marked as required for draw are ready to draw.
+ virtual void NotifyReadyToDraw() = 0;
+
// Called when the visible representation of a tile might have changed. Some
// examples are:
// - Tile version initialized.
@@ -87,8 +90,9 @@ class CC_EXPORT TileManager : public RasterizerClient,
public RefCountedManager<Tile> {
public:
enum NamedTaskSet {
- REQUIRED_FOR_ACTIVATION = 0,
- ALL = 1,
+ ALL,
+ REQUIRED_FOR_ACTIVATION,
+ REQUIRED_FOR_DRAW
// Adding additional values requires increasing kNumberOfTaskSets in
// rasterizer.h
};
@@ -231,7 +235,9 @@ class CC_EXPORT TileManager : public RasterizerClient,
MemoryUsage* usage);
bool TilePriorityViolatesMemoryPolicy(const TilePriority& priority);
bool IsReadyToActivate() const;
+ bool IsReadyToDraw() const;
void CheckIfReadyToActivate();
+ void CheckIfReadyToDraw();
TileManagerClient* client_;
scoped_refptr<base::SequencedTaskRunner> task_runner_;
@@ -272,6 +278,7 @@ class CC_EXPORT TileManager : public RasterizerClient,
std::vector<scoped_refptr<RasterTask>> orphan_raster_tasks_;
UniqueNotifier ready_to_activate_check_notifier_;
+ UniqueNotifier ready_to_draw_check_notifier_;
RasterTilePriorityQueue raster_priority_queue_;
EvictionTilePriorityQueue eviction_priority_queue_;
« 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