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

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

Issue 130443005: [#5] Pass gfx structs by const ref (gfx::Vector2dF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated the review comments Created 6 years, 11 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 | « AUTHORS ('k') | cc/animation/layer_animation_controller.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_LAYER_ANIMATION_CONTROLLER_H_ 5 #ifndef CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 enum UpdateActivationType { 140 enum UpdateActivationType {
141 NormalActivation, 141 NormalActivation,
142 ForceActivation 142 ForceActivation
143 }; 143 };
144 void UpdateActivation(UpdateActivationType type); 144 void UpdateActivation(UpdateActivationType type);
145 145
146 void NotifyObserversOpacityAnimated(float opacity); 146 void NotifyObserversOpacityAnimated(float opacity);
147 void NotifyObserversTransformAnimated(const gfx::Transform& transform); 147 void NotifyObserversTransformAnimated(const gfx::Transform& transform);
148 void NotifyObserversFilterAnimated(const FilterOperations& filter); 148 void NotifyObserversFilterAnimated(const FilterOperations& filter);
149 void NotifyObserversScrollOffsetAnimated(gfx::Vector2dF scroll_offset); 149 void NotifyObserversScrollOffsetAnimated(const gfx::Vector2dF& scroll_offset);
150 150
151 void NotifyObserversAnimationWaitingForDeletion(); 151 void NotifyObserversAnimationWaitingForDeletion();
152 152
153 bool HasValueObserver(); 153 bool HasValueObserver();
154 bool HasActiveValueObserver(); 154 bool HasActiveValueObserver();
155 155
156 AnimationRegistrar* registrar_; 156 AnimationRegistrar* registrar_;
157 int id_; 157 int id_;
158 ScopedPtrVector<Animation> active_animations_; 158 ScopedPtrVector<Animation> active_animations_;
159 159
160 // This is used to ensure that we don't spam the registrar. 160 // This is used to ensure that we don't spam the registrar.
161 bool is_active_; 161 bool is_active_;
162 162
163 double last_tick_time_; 163 double last_tick_time_;
164 164
165 ObserverList<LayerAnimationValueObserver> value_observers_; 165 ObserverList<LayerAnimationValueObserver> value_observers_;
166 ObserverList<LayerAnimationEventObserver> event_observers_; 166 ObserverList<LayerAnimationEventObserver> event_observers_;
167 167
168 LayerAnimationValueProvider* value_provider_; 168 LayerAnimationValueProvider* value_provider_;
169 169
170 AnimationDelegate* layer_animation_delegate_; 170 AnimationDelegate* layer_animation_delegate_;
171 171
172 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); 172 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController);
173 }; 173 };
174 174
175 } // namespace cc 175 } // namespace cc
176 176
177 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 177 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | cc/animation/layer_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698