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

Side by Side Diff: webkit/compositor_bindings/web_transformation_matrix_unittest.cc

Issue 11410021: Remove WTF and WebCore from cc/ and webkit/compositor_bindings/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix content_browsertests Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_transform_operations_unittest.cc ('k') | webkit/compositor_bindings/web_video_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698