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

Unified Diff: cc/layers/layer_impl.h

Issue 2053983003: cc : Move LayerImpl::parent to test properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_impl.cc » ('j') | cc/trees/layer_tree_host_impl_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index b0aaa159cbb36ba0caead64c4048036a8adf7b70..7cb036ba5b82d148cae7492cede02fa49d50eb88 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -102,10 +102,8 @@ class CC_EXPORT LayerImpl {
bool IsActive() const;
// Tree structure.
- LayerImpl* parent() { return parent_; }
void AddChild(std::unique_ptr<LayerImpl> child);
std::unique_ptr<LayerImpl> RemoveChildForTesting(LayerImpl* child);
- void SetParent(LayerImpl* parent);
void DistributeScroll(ScrollState* scroll_state);
void ApplyScroll(ScrollState* scroll_state);
@@ -534,9 +532,6 @@ class CC_EXPORT LayerImpl {
virtual const char* LayerTypeAsString() const;
- // Properties internal to LayerImpl
- LayerImpl* parent_;
-
// mask_layer_ can be temporarily stolen during tree sync, we need this ID to
// confirm newly assigned layer is still the previous one
int mask_layer_id_;
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/trees/layer_tree_host_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698