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

Unified Diff: cc/resources/scoped_ui_resource.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/layers/ui_resource_layer_unittest.cc ('k') | cc/resources/scoped_ui_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/scoped_ui_resource.h
diff --git a/cc/resources/scoped_ui_resource.h b/cc/resources/scoped_ui_resource.h
index 4176c4b5af249e8bbf5b36e5c4afd34b1dc868b6..14db076b1e718dc705f426ad891139d3fab76cb1 100644
--- a/cc/resources/scoped_ui_resource.h
+++ b/cc/resources/scoped_ui_resource.h
@@ -13,7 +13,7 @@
namespace cc {
-class LayerTreeHost;
+class UIResourceManager;
// ScopedUIResource creates an UIResource from a bitmap and a LayerTreeHost.
// This class holds a pointer to the host so that when the instance goes out of
@@ -24,7 +24,7 @@ class LayerTreeHost;
class CC_EXPORT ScopedUIResource : public UIResourceClient {
public:
static std::unique_ptr<ScopedUIResource> Create(
- LayerTreeHost* host,
+ UIResourceManager* ui_resource_manager,
const UIResourceBitmap& bitmap);
~ScopedUIResource() override;
@@ -33,10 +33,11 @@ class CC_EXPORT ScopedUIResource : public UIResourceClient {
UIResourceId id() { return id_; }
protected:
- ScopedUIResource(LayerTreeHost* host, const UIResourceBitmap& bitmap);
+ ScopedUIResource(UIResourceManager* ui_resource_manager,
+ const UIResourceBitmap& bitmap);
UIResourceBitmap bitmap_;
- LayerTreeHost* host_;
+ UIResourceManager* ui_resource_manager_;
UIResourceId id_;
private:
« no previous file with comments | « cc/layers/ui_resource_layer_unittest.cc ('k') | cc/resources/scoped_ui_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698