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

Side by Side Diff: cc/animation/animation_host.h

Issue 1172583003: [DRAFT] Animations: Profile hash look-ups for external mutators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@implscroll
Patch Set: Created 5 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 | « no previous file | cc/animation/animation_host.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ANIMATION_ANIMATION_HOST_H_ 5 #ifndef CC_ANIMATION_ANIMATION_HOST_H_
6 #define CC_ANIMATION_ANIMATION_HOST_H_ 6 #define CC_ANIMATION_ANIMATION_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // Parent LayerTreeHost or LayerTreeHostImpl. 58 // Parent LayerTreeHost or LayerTreeHostImpl.
59 LayerTreeMutatorsClient* layer_tree_mutators_client() { 59 LayerTreeMutatorsClient* layer_tree_mutators_client() {
60 return layer_tree_mutators_client_; 60 return layer_tree_mutators_client_;
61 } 61 }
62 const LayerTreeMutatorsClient* layer_tree_mutators_client() const { 62 const LayerTreeMutatorsClient* layer_tree_mutators_client() const {
63 return layer_tree_mutators_client_; 63 return layer_tree_mutators_client_;
64 } 64 }
65 void SetLayerTreeMutatorsClient(LayerTreeMutatorsClient* client); 65 void SetLayerTreeMutatorsClient(LayerTreeMutatorsClient* client);
66 66
67 void SetNeedsCommit(); 67 void SetNeedsCommit();
68 void ReportAndClearStatsOnFrameEnd();
68 69
69 void PushPropertiesTo(AnimationHost* host_impl); 70 void PushPropertiesTo(AnimationHost* host_impl);
70 71
71 AnimationRegistrar* animation_registrar() const { 72 AnimationRegistrar* animation_registrar() const {
72 return animation_registrar_.get(); 73 return animation_registrar_.get();
73 } 74 }
74 75
75 void SetSupportsScrollAnimations(bool supports_scroll_animations); 76 void SetSupportsScrollAnimations(bool supports_scroll_animations);
76 bool SupportsScrollAnimations() const; 77 bool SupportsScrollAnimations() const;
77 bool NeedsAnimateLayers() const; 78 bool NeedsAnimateLayers() const;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void PushTimelinesToImplThread(AnimationHost* host_impl) const; 142 void PushTimelinesToImplThread(AnimationHost* host_impl) const;
142 void RemoveTimelinesFromImplThread(AnimationHost* host_impl) const; 143 void RemoveTimelinesFromImplThread(AnimationHost* host_impl) const;
143 void PushPropertiesToImplThread(AnimationHost* host_impl); 144 void PushPropertiesToImplThread(AnimationHost* host_impl);
144 145
145 void EraseTimelines(AnimationTimelineList::iterator begin, 146 void EraseTimelines(AnimationTimelineList::iterator begin,
146 AnimationTimelineList::iterator end); 147 AnimationTimelineList::iterator end);
147 148
148 AnimationTimelineList timelines_; 149 AnimationTimelineList timelines_;
149 scoped_ptr<AnimationRegistrar> animation_registrar_; 150 scoped_ptr<AnimationRegistrar> animation_registrar_;
150 LayerTreeMutatorsClient* layer_tree_mutators_client_; 151 LayerTreeMutatorsClient* layer_tree_mutators_client_;
152 mutable base::TimeDelta find_player_for_layer_id_stats_;
151 153
152 scoped_ptr<ScrollOffsetAnimations> scroll_offset_animations_; 154 scoped_ptr<ScrollOffsetAnimations> scroll_offset_animations_;
153 155
154 const bool is_impl_instance_; 156 const bool is_impl_instance_;
155 157
156 DISALLOW_COPY_AND_ASSIGN(AnimationHost); 158 DISALLOW_COPY_AND_ASSIGN(AnimationHost);
157 }; 159 };
158 160
159 } // namespace cc 161 } // namespace cc
160 162
161 #endif // CC_ANIMATION_ANIMATION_HOST_H_ 163 #endif // CC_ANIMATION_ANIMATION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/animation/animation_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698