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

Unified Diff: cc/animation/transform_operations_unittest.cc

Issue 1325803002: Apply skew on both axes together rather than sequentially on Compositor thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test for skewY Created 5 years, 3 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 | « cc/animation/transform_operations.cc ('k') | cc/base/float_quad_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/transform_operations_unittest.cc
diff --git a/cc/animation/transform_operations_unittest.cc b/cc/animation/transform_operations_unittest.cc
index c5fb3c6b8160027c9e0672823a2e91c35b323b75..5a195227d4862d10fb4f1540c204f5bdaa33f70e 100644
--- a/cc/animation/transform_operations_unittest.cc
+++ b/cc/animation/transform_operations_unittest.cc
@@ -209,8 +209,7 @@ TEST(TransformOperationTest, ApplySkew) {
TransformOperations operations;
operations.AppendSkew(x, y);
gfx::Transform expected;
- expected.SkewX(x);
- expected.SkewY(y);
+ expected.Skew(x, y);
EXPECT_TRANSFORMATION_MATRIX_EQ(expected, operations.Apply());
}
@@ -552,8 +551,7 @@ TEST(TransformOperationTest, BlendSkewFromEmpty) {
SkMScalar progress = 0.5f;
gfx::Transform expected;
- expected.SkewX(1);
- expected.SkewY(1);
+ expected.Skew(1, 1);
EXPECT_TRANSFORMATION_MATRIX_EQ(expected,
operations.Blend(empty_operation, progress));
@@ -561,8 +559,7 @@ TEST(TransformOperationTest, BlendSkewFromEmpty) {
progress = -0.5f;
expected.MakeIdentity();
- expected.SkewX(-1);
- expected.SkewY(-1);
+ expected.Skew(-1, -1);
EXPECT_TRANSFORMATION_MATRIX_EQ(expected,
operations.Blend(empty_operation, progress));
@@ -570,8 +567,7 @@ TEST(TransformOperationTest, BlendSkewFromEmpty) {
progress = 1.5f;
expected.MakeIdentity();
- expected.SkewX(3);
- expected.SkewY(3);
+ expected.Skew(3, 3);
EXPECT_TRANSFORMATION_MATRIX_EQ(expected,
operations.Blend(empty_operation, progress));
@@ -658,8 +654,7 @@ TEST(TransformOperationTest, BlendSkewToEmpty) {
SkMScalar progress = 0.5f;
gfx::Transform expected;
- expected.SkewX(1);
- expected.SkewY(1);
+ expected.Skew(1, 1);
EXPECT_TRANSFORMATION_MATRIX_EQ(expected,
empty_operation.Blend(operations, progress));
« no previous file with comments | « cc/animation/transform_operations.cc ('k') | cc/base/float_quad_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698