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

Unified Diff: cc/animation/keyframed_animation_curve.cc

Issue 465853004: Moving RenderSurface creation outside of CalcDrawProps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: cc/animation/keyframed_animation_curve.cc
diff --git a/cc/animation/keyframed_animation_curve.cc b/cc/animation/keyframed_animation_curve.cc
index 9642329ebe7728ea158789e4d5befe443d547e13..f666551a380b076987dd408def7b98d23e1a05da 100644
--- a/cc/animation/keyframed_animation_curve.cc
+++ b/cc/animation/keyframed_animation_curve.cc
@@ -363,6 +363,13 @@ bool KeyframedTransformAnimationCurve::AffectsScale() const {
return false;
}
+bool KeyframedTransformAnimationCurve::PreservesAxisAlignment() const {
+ for (size_t i = 0; i < keyframes_.size(); ++i) {
+ if (!keyframes_[i]->Value().PreservesAxisAlignment()) return false;
+ }
+ return true;
+}
+
bool KeyframedTransformAnimationCurve::IsTranslation() const {
for (size_t i = 0; i < keyframes_.size(); ++i) {
if (!keyframes_[i]->Value().IsTranslation() &&

Powered by Google App Engine
This is Rietveld 408576698