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

Unified Diff: cc/resources/tile_manager.h

Issue 322443002: cc: Refactor how picture layers are exposed to the tile manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tile manager perf tests Created 6 years, 6 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/layers/picture_layer_impl_unittest.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 4c7360c22f7d9f78c6ccfd9b9e9075c80e3fa3b4..b36a6b4f1363e7ca6ade35406cb3de8a30eea910 100644
--- a/cc/resources/tile_manager.h
+++ b/cc/resources/tile_manager.h
@@ -31,6 +31,9 @@ class ResourceProvider;
class CC_EXPORT TileManagerClient {
public:
+ // Returns the set of layers that the tile manager should consider for raster.
+ virtual const std::vector<PictureLayerImpl*>& GetPictureLayers() = 0;
+
// Called when all tiles marked as required for activation are ready to draw.
virtual void NotifyReadyToActivate() = 0;
@@ -182,9 +185,6 @@ class CC_EXPORT TileManager : public RasterizerClient,
int source_frame_number,
int flags);
- void RegisterPictureLayerImpl(PictureLayerImpl* layer);
- void UnregisterPictureLayerImpl(PictureLayerImpl* layer);
-
scoped_ptr<base::Value> BasicStateAsValue() const;
scoped_ptr<base::Value> AllTilesAsValue() const;
void GetMemoryStats(size_t* memory_required_bytes,
@@ -290,7 +290,6 @@ class CC_EXPORT TileManager : public RasterizerClient,
scoped_refptr<RasterTask> CreateRasterTask(Tile* tile);
scoped_ptr<base::Value> GetMemoryRequirementsAsValue() const;
void UpdatePrioritizedTileSetIfNeeded();
- void CleanUpLayers();
bool IsReadyToActivate() const;
void CheckIfReadyToActivate();
@@ -343,8 +342,6 @@ class CC_EXPORT TileManager : public RasterizerClient,
std::vector<scoped_refptr<RasterTask> > orphan_raster_tasks_;
- std::vector<PictureLayerImpl*> layers_;
-
UniqueNotifier ready_to_activate_check_notifier_;
DISALLOW_COPY_AND_ASSIGN(TileManager);
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698