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

Side by Side Diff: ui/compositor/transform_animation_curve_adapter.cc

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: Rebasing and Added more tests Created 5 years, 7 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 | « ui/compositor/transform_animation_curve_adapter.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "ui/compositor/transform_animation_curve_adapter.h" 5 #include "ui/compositor/transform_animation_curve_adapter.h"
6 6
7 #include "cc/base/time_util.h" 7 #include "cc/base/time_util.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 return initial_value_.IsIdentityOrTranslation() && 68 return initial_value_.IsIdentityOrTranslation() &&
69 target_value_.IsIdentityOrTranslation(); 69 target_value_.IsIdentityOrTranslation();
70 } 70 }
71 71
72 bool TransformAnimationCurveAdapter::PreservesAxisAlignment() const { 72 bool TransformAnimationCurveAdapter::PreservesAxisAlignment() const {
73 return (initial_value_.IsIdentity() || 73 return (initial_value_.IsIdentity() ||
74 initial_value_.IsScaleOrTranslation()) && 74 initial_value_.IsScaleOrTranslation()) &&
75 (target_value_.IsIdentity() || target_value_.IsScaleOrTranslation()); 75 (target_value_.IsIdentity() || target_value_.IsScaleOrTranslation());
76 } 76 }
77 77
78 bool TransformAnimationCurveAdapter::AnimationStartScale(
79 bool forward_direction,
80 float* start_scale) const {
81 return false;
82 }
83
78 bool TransformAnimationCurveAdapter::MaximumTargetScale( 84 bool TransformAnimationCurveAdapter::MaximumTargetScale(
79 bool forward_direction, 85 bool forward_direction,
80 float* max_scale) const { 86 float* max_scale) const {
81 return false; 87 return false;
82 } 88 }
83 89
84 InverseTransformCurveAdapter::InverseTransformCurveAdapter( 90 InverseTransformCurveAdapter::InverseTransformCurveAdapter(
85 TransformAnimationCurveAdapter base_curve, 91 TransformAnimationCurveAdapter base_curve,
86 gfx::Transform initial_value, 92 gfx::Transform initial_value,
87 base::TimeDelta duration) 93 base::TimeDelta duration)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 return initial_value_.IsIdentityOrTranslation() && 142 return initial_value_.IsIdentityOrTranslation() &&
137 base_curve_.IsTranslation(); 143 base_curve_.IsTranslation();
138 } 144 }
139 145
140 bool InverseTransformCurveAdapter::PreservesAxisAlignment() const { 146 bool InverseTransformCurveAdapter::PreservesAxisAlignment() const {
141 return (initial_value_.IsIdentity() || 147 return (initial_value_.IsIdentity() ||
142 initial_value_.IsScaleOrTranslation()) && 148 initial_value_.IsScaleOrTranslation()) &&
143 (base_curve_.PreservesAxisAlignment()); 149 (base_curve_.PreservesAxisAlignment());
144 } 150 }
145 151
152 bool InverseTransformCurveAdapter::AnimationStartScale(
153 bool forward_direction,
154 float* start_scale) const {
155 return false;
156 }
157
146 bool InverseTransformCurveAdapter::MaximumTargetScale(bool forward_direction, 158 bool InverseTransformCurveAdapter::MaximumTargetScale(bool forward_direction,
147 float* max_scale) const { 159 float* max_scale) const {
148 return false; 160 return false;
149 } 161 }
150 162
151 } // namespace ui 163 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/transform_animation_curve_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698