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

Unified Diff: cc/trees/layer_tree_host_interface.h

Issue 2322943003: cc: Move UI Resource management out of LayerTreeHost. (Closed)
Patch Set: virtual dtor 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
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_interface.h
diff --git a/cc/trees/layer_tree_host_interface.h b/cc/trees/layer_tree_host_interface.h
index 7308787b5ab10b1e31cc8ecbad4aba058a1c0c7f..860031c791c714d7a690d5614e6bb80ff0f67b32 100644
--- a/cc/trees/layer_tree_host_interface.h
+++ b/cc/trees/layer_tree_host_interface.h
@@ -27,6 +27,7 @@ class LayerTreeSettings;
class OutputSurface;
class SwapPromiseMonitor;
class TaskRunnerProvider;
+class UIResourceManager;
// TODO(khushalsagar): Will be renamed to LayerTreeHost.
class CC_EXPORT LayerTreeHostInterface {
@@ -45,6 +46,10 @@ class CC_EXPORT LayerTreeHostInterface {
virtual LayerTree* GetLayerTree() = 0;
virtual const LayerTree* GetLayerTree() const = 0;
+ // Returns the UIResourceManager used to create UIResources for
+ // UIResourceLayers pushed to the LayerTree.
+ virtual UIResourceManager* GetUIResourceManager() const = 0;
+
// Returns the TaskRunnerProvider used to access the main and compositor
// thread task runners.
virtual TaskRunnerProvider* GetTaskRunnerProvider() const = 0;
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698