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

Unified Diff: cc/layers/layer.h

Issue 2331983002: cc: Make LayerTreeHost a protected Layer member. (Closed)
Patch Set: settings 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 | « no previous file | cc/layers/layer_proto_converter_unittest.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 30e9ed447c6a66e7e876dec9ca868143159d0feb..762a56ce96f27fbb9f96bf8afec3103f9169b719 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -391,8 +391,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
// of |proto| is only read if |needs_push_properties_| is set.
void FromLayerPropertiesProto(const proto::LayerProperties& proto);
- LayerTreeHost* layer_tree_host() { return layer_tree_host_; }
- const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; }
+ LayerTreeHost* GetLayerTreeHostForTesting() const { return layer_tree_host_; }
LayerTree* GetLayerTree() const;
virtual ScrollbarLayerInterface* ToScrollbarLayer();
@@ -501,6 +500,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
virtual ~Layer();
Layer();
+ LayerTreeHost* layer_tree_host() { return layer_tree_host_; }
+ const LayerTreeHost* layer_tree_host() const { return layer_tree_host_; }
+
// These SetNeeds functions are in order of severity of update:
//
// Called when this layer has been modified in some way, but isn't sure
« no previous file with comments | « no previous file | cc/layers/layer_proto_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698