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

Unified Diff: ui/compositor/layer_animator.cc

Issue 11145005: Migrate ui::Transform to gfx::Transform (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Hopefully should work this time Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/layer_animator.h ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_animator.cc
diff --git a/ui/compositor/layer_animator.cc b/ui/compositor/layer_animator.cc
index 052458626f9c88d97c1541cfdb2ed4bb5d3b9cf9..9082551826784deed6b7dc9863b51a4a41766e1f 100644
--- a/ui/compositor/layer_animator.cc
+++ b/ui/compositor/layer_animator.cc
@@ -73,7 +73,7 @@ LayerAnimator* LayerAnimator::CreateImplicitAnimator() {
return new LayerAnimator(kDefaultTransitionDuration);
}
-void LayerAnimator::SetTransform(const Transform& transform) {
+void LayerAnimator::SetTransform(const gfx::Transform& transform) {
base::TimeDelta duration = GetTransitionDuration();
scoped_ptr<LayerAnimationElement> element(
LayerAnimationElement::CreateTransformElement(transform, duration));
@@ -81,7 +81,7 @@ void LayerAnimator::SetTransform(const Transform& transform) {
StartAnimation(new LayerAnimationSequence(element.release()));
}
-Transform LayerAnimator::GetTargetTransform() const {
+gfx::Transform LayerAnimator::GetTargetTransform() const {
LayerAnimationElement::TargetValue target(delegate());
GetTargetValue(&target);
return target.transform;
« no previous file with comments | « ui/compositor/layer_animator.h ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698