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

Unified Diff: cc/layers/layer_impl.h

Issue 2053193002: cc : Move LayerImpl::children 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/layers/layer_impl.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 524eb4ccb77e549482561b8e0ca923bd8bafaf0a..b0aaa159cbb36ba0caead64c4048036a8adf7b70 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -103,8 +103,6 @@ class CC_EXPORT LayerImpl {
// Tree structure.
LayerImpl* parent() { return parent_; }
- LayerImplList& children() { return children_; }
- LayerImpl* child_at(size_t index) const { return children_[index]; }
void AddChild(std::unique_ptr<LayerImpl> child);
std::unique_ptr<LayerImpl> RemoveChildForTesting(LayerImpl* child);
void SetParent(LayerImpl* parent);
@@ -423,7 +421,7 @@ class CC_EXPORT LayerImpl {
void AddDamageRect(const gfx::Rect& damage_rect);
const gfx::Rect& damage_rect() const { return damage_rect_; }
- virtual std::unique_ptr<base::DictionaryValue> LayerTreeAsJson() const;
+ virtual std::unique_ptr<base::DictionaryValue> LayerTreeAsJson();
bool LayerPropertyChanged() const;
@@ -538,7 +536,6 @@ class CC_EXPORT LayerImpl {
// Properties internal to LayerImpl
LayerImpl* parent_;
- LayerImplList children_;
// mask_layer_ can be temporarily stolen during tree sync, we need this ID to
// confirm newly assigned layer is still the previous one
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698