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

Unified Diff: cc/layers/layer.h

Issue 1122393003: CC: Plumb LayerSettings parameter for cc::Layer construction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 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/io_surface_layer.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 9c7138e9fdc515040f908c1543a5fa11815813ec..b0a1d665b46315ab809b327e422f2cca54676a42 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -58,6 +58,7 @@ class CopyOutputRequest;
class LayerAnimationEventObserver;
class LayerClient;
class LayerImpl;
+class LayerSettings;
class LayerTreeHost;
class LayerTreeHostCommon;
class LayerTreeImpl;
@@ -84,7 +85,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
INVALID_ID = -1,
};
- static scoped_refptr<Layer> Create();
+ static scoped_refptr<Layer> Create(const LayerSettings& settings);
int id() const { return layer_id_; }
@@ -564,7 +565,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
friend class TreeSynchronizer;
~Layer() override;
- Layer();
+ explicit Layer(const LayerSettings& settings);
// These SetNeeds functions are in order of severity of update:
//
« no previous file with comments | « cc/layers/io_surface_layer.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698