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

Unified Diff: cc/layers/solid_color_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/scrollbar_layer_unittest.cc ('k') | cc/layers/solid_color_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/solid_color_layer.h
diff --git a/cc/layers/solid_color_layer.h b/cc/layers/solid_color_layer.h
index 8dc986075a50563c80c5f079cc7ef1a69a12f182..b544f66311a55ab51d1735a8c90ea76f8c5eed6d 100644
--- a/cc/layers/solid_color_layer.h
+++ b/cc/layers/solid_color_layer.h
@@ -15,14 +15,14 @@ namespace cc {
// SetBackgroundColor() on the base class.
class CC_EXPORT SolidColorLayer : public Layer {
public:
- static scoped_refptr<SolidColorLayer> Create();
+ static scoped_refptr<SolidColorLayer> Create(const LayerSettings& settings);
scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
void SetBackgroundColor(SkColor color) override;
protected:
- SolidColorLayer();
+ explicit SolidColorLayer(const LayerSettings& settings);
private:
~SolidColorLayer() override;
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/layers/solid_color_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698