OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "config.h" | |
6 | |
7 #define _USE_MATH_DEFINES | 5 #define _USE_MATH_DEFINES |
8 #include <math.h> | 6 #include <math.h> |
9 | 7 |
10 #include "cc/test/geometry_test_utils.h" | 8 #include "cc/test/geometry_test_utils.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMa
trix.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformationMa
trix.h" |
13 | 11 |
14 #define EXPECT_ROW1_EQ(a, b, c, d, matrix) \ | 12 #define EXPECT_ROW1_EQ(a, b, c, d, matrix) \ |
15 EXPECT_FLOAT_EQ((a), (matrix).m11()); \ | 13 EXPECT_FLOAT_EQ((a), (matrix).m11()); \ |
16 EXPECT_FLOAT_EQ((b), (matrix).m21()); \ | 14 EXPECT_FLOAT_EQ((b), (matrix).m21()); \ |
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 normalizationMatrix.setM11(1 / expectedEndOfAnimation.m44()); | 1304 normalizationMatrix.setM11(1 / expectedEndOfAnimation.m44()); |
1307 normalizationMatrix.setM22(1 / expectedEndOfAnimation.m44()); | 1305 normalizationMatrix.setM22(1 / expectedEndOfAnimation.m44()); |
1308 normalizationMatrix.setM33(1 / expectedEndOfAnimation.m44()); | 1306 normalizationMatrix.setM33(1 / expectedEndOfAnimation.m44()); |
1309 normalizationMatrix.setM44(1 / expectedEndOfAnimation.m44()); | 1307 normalizationMatrix.setM44(1 / expectedEndOfAnimation.m44()); |
1310 normalizedExpectedEndOfAnimation.multiply(normalizationMatrix); | 1308 normalizedExpectedEndOfAnimation.multiply(normalizationMatrix); |
1311 | 1309 |
1312 EXPECT_TRANSFORMATION_MATRIX_EQ(normalizedExpectedEndOfAnimation, to); | 1310 EXPECT_TRANSFORMATION_MATRIX_EQ(normalizedExpectedEndOfAnimation, to); |
1313 } | 1311 } |
1314 | 1312 |
1315 } // namespace | 1313 } // namespace |
OLD | NEW |