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

Side by Side Diff: cc/layers/layer_impl.h

Issue 2084233002: cc: Move LayerImpl::AddChild and RemoveChild to LayerImplTestProperties (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 unified diff | Download patch
« no previous file with comments | « cc/input/scrollbar_animation_controller_thinning_unittest.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void OnFilterAnimated(const FilterOperations& filters); 94 void OnFilterAnimated(const FilterOperations& filters);
95 void OnOpacityAnimated(float opacity); 95 void OnOpacityAnimated(float opacity);
96 void OnTransformAnimated(const gfx::Transform& transform); 96 void OnTransformAnimated(const gfx::Transform& transform);
97 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 97 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
98 void OnTransformIsCurrentlyAnimatingChanged(bool is_currently_animating); 98 void OnTransformIsCurrentlyAnimatingChanged(bool is_currently_animating);
99 void OnTransformIsPotentiallyAnimatingChanged(bool has_potential_animation); 99 void OnTransformIsPotentiallyAnimatingChanged(bool has_potential_animation);
100 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating); 100 void OnOpacityIsCurrentlyAnimatingChanged(bool is_currently_animating);
101 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation); 101 void OnOpacityIsPotentiallyAnimatingChanged(bool has_potential_animation);
102 bool IsActive() const; 102 bool IsActive() const;
103 103
104 // Tree structure.
105 void AddChild(std::unique_ptr<LayerImpl> child);
106 std::unique_ptr<LayerImpl> RemoveChildForTesting(LayerImpl* child);
107
108 void DistributeScroll(ScrollState* scroll_state); 104 void DistributeScroll(ScrollState* scroll_state);
109 void ApplyScroll(ScrollState* scroll_state); 105 void ApplyScroll(ScrollState* scroll_state);
110 106
111 void set_property_tree_sequence_number(int sequence_number) {} 107 void set_property_tree_sequence_number(int sequence_number) {}
112 108
113 void SetTransformTreeIndex(int index); 109 void SetTransformTreeIndex(int index);
114 int transform_tree_index() const { return transform_tree_index_; } 110 int transform_tree_index() const { return transform_tree_index_; }
115 111
116 void SetClipTreeIndex(int index); 112 void SetClipTreeIndex(int index);
117 int clip_tree_index() const { return clip_tree_index_; } 113 int clip_tree_index() const { return clip_tree_index_; }
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 bool scrolls_drawn_descendant_ : 1; 601 bool scrolls_drawn_descendant_ : 1;
606 bool has_will_change_transform_hint_ : 1; 602 bool has_will_change_transform_hint_ : 1;
607 bool needs_push_properties_ : 1; 603 bool needs_push_properties_ : 1;
608 604
609 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 605 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
610 }; 606 };
611 607
612 } // namespace cc 608 } // namespace cc
613 609
614 #endif // CC_LAYERS_LAYER_IMPL_H_ 610 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/input/scrollbar_animation_controller_thinning_unittest.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698