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

Unified Diff: cc/trees/layer_tree.h

Issue 2322943003: cc: Move UI Resource management out of LayerTreeHost. (Closed)
Patch Set: format Created 4 years, 3 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/trees/layer_tree.h
diff --git a/cc/trees/layer_tree.h b/cc/trees/layer_tree.h
index e731d4b1c9d900dddb3c53b791a39a2b4652b629..666d034dee3034a96c253b864c2167f1f0e07265 100644
--- a/cc/trees/layer_tree.h
+++ b/cc/trees/layer_tree.h
@@ -37,7 +37,9 @@ class HeadsUpDisplayLayer;
class Layer;
class LayerTreeHost;
class LayerTreeImpl;
+class LayerTreeSettings;
struct PendingPageScaleAnimation;
+class UIResourceManager;
class CC_EXPORT LayerTree : public MutatorHostClient {
public:
@@ -120,6 +122,11 @@ class CC_EXPORT LayerTree : public MutatorHostClient {
void SetNeedsDisplayOnAllLayers();
+ // Methods which pass through to the LayerTreeHost --------------------
+ UIResourceManager* GetUIResourceManager() const;
+ const LayerTreeSettings& GetSettings() const;
+ // --------------------------------------------------------------------
+
// Methods which should only be used internally in cc ------------------
void RegisterLayer(Layer* layer);
void UnregisterLayer(Layer* layer);

Powered by Google App Engine
This is Rietveld 408576698