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

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

Issue 1864183002: cc: Main thread skip single layers instead of subtrees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Format the comments Created 4 years, 8 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/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/layers/layer_proto_converter.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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 int id() const { return layer_id_; } 91 int id() const { return layer_id_; }
92 92
93 // Interactions with attached animations. 93 // Interactions with attached animations.
94 gfx::ScrollOffset ScrollOffsetForAnimation() const; 94 gfx::ScrollOffset ScrollOffsetForAnimation() const;
95 void OnFilterAnimated(const FilterOperations& filters); 95 void OnFilterAnimated(const FilterOperations& filters);
96 void OnOpacityAnimated(float opacity); 96 void OnOpacityAnimated(float opacity);
97 void OnTransformAnimated(const gfx::Transform& transform); 97 void OnTransformAnimated(const gfx::Transform& transform);
98 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset); 98 void OnScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset);
99 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating); 99 void OnTransformIsPotentiallyAnimatingChanged(bool is_animating);
100 bool IsActive() const; 100 bool IsActive() const;
101 bool OpacityCanAnimateOnImplThread() const { return false; }
101 102
102 // Tree structure. 103 // Tree structure.
103 LayerImpl* parent() { return parent_; } 104 LayerImpl* parent() { return parent_; }
104 LayerImplList& children() { return children_; } 105 LayerImplList& children() { return children_; }
105 LayerImpl* child_at(size_t index) const { return children_[index]; } 106 LayerImpl* child_at(size_t index) const { return children_[index]; }
106 void AddChild(scoped_ptr<LayerImpl> child); 107 void AddChild(scoped_ptr<LayerImpl> child);
107 scoped_ptr<LayerImpl> RemoveChildForTesting(LayerImpl* child); 108 scoped_ptr<LayerImpl> RemoveChildForTesting(LayerImpl* child);
108 void SetParent(LayerImpl* parent); 109 void SetParent(LayerImpl* parent);
109 110
110 void SetScrollParent(LayerImpl* parent); 111 void SetScrollParent(LayerImpl* parent);
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 bool layer_or_descendant_is_drawn_; 767 bool layer_or_descendant_is_drawn_;
767 // If true, the layer or one of its descendants has a touch handler. 768 // If true, the layer or one of its descendants has a touch handler.
768 bool layer_or_descendant_has_touch_handler_; 769 bool layer_or_descendant_has_touch_handler_;
769 770
770 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 771 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
771 }; 772 };
772 773
773 } // namespace cc 774 } // namespace cc
774 775
775 #endif // CC_LAYERS_LAYER_IMPL_H_ 776 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/layers/layer_proto_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698