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

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

Issue 1076313006: Animation start scale should be considered for the raster scale (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 gfx::BoxF* bounds) const; 127 gfx::BoxF* bounds) const;
128 bool TransformAnimationBoundsForBox(const gfx::BoxF& box, 128 bool TransformAnimationBoundsForBox(const gfx::BoxF& box,
129 gfx::BoxF* bounds) const; 129 gfx::BoxF* bounds) const;
130 130
131 bool HasAnimationThatAffectsScale() const; 131 bool HasAnimationThatAffectsScale() const;
132 132
133 bool HasOnlyTranslationTransforms() const; 133 bool HasOnlyTranslationTransforms() const;
134 134
135 bool AnimationsPreserveAxisAlignment() const; 135 bool AnimationsPreserveAxisAlignment() const;
136 136
137 // Animation start scale
danakj 2015/04/23 18:24:08 better comment like the one below?
patro 2015/04/24 11:47:27 Done.
138 bool AnimationStartScale(float* start_scale) const;
139
137 // Sets |max_scale| to the maximum scale along any dimension at any 140 // Sets |max_scale| to the maximum scale along any dimension at any
138 // destination in active animations. Returns false if the maximum scale cannot 141 // destination in active animations. Returns false if the maximum scale cannot
139 // be computed. 142 // be computed.
140 bool MaximumTargetScale(float* max_scale) const; 143 bool MaximumTargetScale(float* max_scale) const;
141 144
142 // When a scroll animation is removed on the main thread, its compositor 145 // When a scroll animation is removed on the main thread, its compositor
143 // thread counterpart continues producing scroll deltas until activation. 146 // thread counterpart continues producing scroll deltas until activation.
144 // These scroll deltas need to be cleared at activation, so that the active 147 // These scroll deltas need to be cleared at activation, so that the active
145 // layer's scroll offset matches the offset provided by the main thread 148 // layer's scroll offset matches the offset provided by the main thread
146 // rather than a combination of this offset and scroll deltas produced by 149 // rather than a combination of this offset and scroll deltas produced by
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 bool needs_to_start_animations_; 225 bool needs_to_start_animations_;
223 226
224 bool scroll_offset_animation_was_interrupted_; 227 bool scroll_offset_animation_was_interrupted_;
225 228
226 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); 229 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController);
227 }; 230 };
228 231
229 } // namespace cc 232 } // namespace cc
230 233
231 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ 234 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698