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

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

Issue 1734063003: Share animations from compositor to main thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: worked on review comments Created 4 years, 9 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
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // AnimationDelegate implementation. 120 // AnimationDelegate implementation.
121 void NotifyAnimationStarted(base::TimeTicks monotonic_time, 121 void NotifyAnimationStarted(base::TimeTicks monotonic_time,
122 TargetProperty::Type target_property, 122 TargetProperty::Type target_property,
123 int group) override{}; 123 int group) override{};
124 void NotifyAnimationFinished(base::TimeTicks monotonic_time, 124 void NotifyAnimationFinished(base::TimeTicks monotonic_time,
125 TargetProperty::Type target_property, 125 TargetProperty::Type target_property,
126 int group) override; 126 int group) override;
127 void NotifyAnimationAborted(base::TimeTicks monotonic_time, 127 void NotifyAnimationAborted(base::TimeTicks monotonic_time,
128 TargetProperty::Type target_property, 128 TargetProperty::Type target_property,
129 int group) override{}; 129 int group) override{};
130 void NotifyAnimationTakeover(base::TimeTicks monotonic_time,
131 TargetProperty::Type target_property,
132 double animation_start_time,
133 scoped_ptr<AnimationCurve> curve) override {}
130 134
131 // Tree structure. 135 // Tree structure.
132 LayerImpl* parent() { return parent_; } 136 LayerImpl* parent() { return parent_; }
133 const LayerImpl* parent() const { return parent_; } 137 const LayerImpl* parent() const { return parent_; }
134 const OwnedLayerImplList& children() const { return children_; } 138 const OwnedLayerImplList& children() const { return children_; }
135 OwnedLayerImplList& children() { return children_; } 139 OwnedLayerImplList& children() { return children_; }
136 LayerImpl* child_at(size_t index) const { return children_[index].get(); } 140 LayerImpl* child_at(size_t index) const { return children_[index].get(); }
137 void AddChild(scoped_ptr<LayerImpl> child); 141 void AddChild(scoped_ptr<LayerImpl> child);
138 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child); 142 scoped_ptr<LayerImpl> RemoveChild(LayerImpl* child);
139 void SetParent(LayerImpl* parent); 143 void SetParent(LayerImpl* parent);
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 void set_user_scrollable_vertical(bool scrollable) { 502 void set_user_scrollable_vertical(bool scrollable) {
499 user_scrollable_vertical_ = scrollable; 503 user_scrollable_vertical_ = scrollable;
500 } 504 }
501 bool user_scrollable_vertical() const { return user_scrollable_vertical_; } 505 bool user_scrollable_vertical() const { return user_scrollable_vertical_; }
502 506
503 bool user_scrollable(ScrollbarOrientation orientation) const; 507 bool user_scrollable(ScrollbarOrientation orientation) const;
504 508
505 void ApplySentScrollDeltasFromAbortedCommit(); 509 void ApplySentScrollDeltasFromAbortedCommit();
506 510
507 void set_main_thread_scrolling_reasons( 511 void set_main_thread_scrolling_reasons(
508 uint32_t main_thread_scrolling_reasons) { 512 uint32_t main_thread_scrolling_reasons);
509 main_thread_scrolling_reasons_ = main_thread_scrolling_reasons;
510 }
511 uint32_t main_thread_scrolling_reasons() const { 513 uint32_t main_thread_scrolling_reasons() const {
512 return main_thread_scrolling_reasons_; 514 return main_thread_scrolling_reasons_;
513 } 515 }
514 bool should_scroll_on_main_thread() const { 516 bool should_scroll_on_main_thread() const {
515 return !!main_thread_scrolling_reasons_; 517 return !!main_thread_scrolling_reasons_;
516 } 518 }
517 519
518 void SetNonFastScrollableRegion(const Region& region) { 520 void SetNonFastScrollableRegion(const Region& region) {
519 non_fast_scrollable_region_ = region; 521 non_fast_scrollable_region_ = region;
520 } 522 }
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 // If true, the layer or one of its descendants has a touch handler. 875 // If true, the layer or one of its descendants has a touch handler.
874 bool layer_or_descendant_has_touch_handler_; 876 bool layer_or_descendant_has_touch_handler_;
875 bool sorted_for_recursion_; 877 bool sorted_for_recursion_;
876 878
877 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 879 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
878 }; 880 };
879 881
880 } // namespace cc 882 } // namespace cc
881 883
882 #endif // CC_LAYERS_LAYER_IMPL_H_ 884 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698