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

Unified Diff: cc/test/animation_test_common.cc

Issue 11745018: Not for review: Move the implementation of WebTransformOperations into chromium (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: New approach Created 7 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 side-by-side diff with in-line comments
Download patch
Index: cc/test/animation_test_common.cc
diff --git a/cc/test/animation_test_common.cc b/cc/test/animation_test_common.cc
index 6b896b6644820544a143a1a4008965970455d87b..9cce3271970cf2036da63905f1b6a7cb197139f6 100644
--- a/cc/test/animation_test_common.cc
+++ b/cc/test/animation_test_common.cc
@@ -8,7 +8,7 @@
#include "cc/layer.h"
#include "cc/layer_animation_controller.h"
#include "cc/layer_impl.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebTransformOperations.h"
+#include "cc/transform_operations.h"
using cc::Animation;
using cc::AnimationCurve;
@@ -50,13 +50,13 @@ int addAnimatedTransform(Target& target, double duration, int deltaX, int deltaY
scoped_ptr<KeyframedTransformAnimationCurve> curve(KeyframedTransformAnimationCurve::create());
if (duration > 0) {
- WebKit::WebTransformOperations startOperations;
- startOperations.appendTranslate(deltaX, deltaY, 0);
+ TransformOperations startOperations;
+ startOperations.AppendTranslate(deltaX, deltaY, 0);
curve->addKeyframe(TransformKeyframe::create(0, startOperations, scoped_ptr<cc::TimingFunction>()));
}
- WebKit::WebTransformOperations operations;
- operations.appendTranslate(deltaX, deltaY, 0);
+ TransformOperations operations;
+ operations.AppendTranslate(deltaX, deltaY, 0);
curve->addKeyframe(TransformKeyframe::create(duration, operations, scoped_ptr<cc::TimingFunction>()));
int id = nextAnimationId++;

Powered by Google App Engine
This is Rietveld 408576698