| 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" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include <public/WebTransformOperations.h> | 7 #include <public/WebTransformOperations.h> |
| 8 | 8 |
| 9 #include "CCGeometryTestUtils.h" |
| 10 #include <gtest/gtest.h> |
| 9 #include <public/WebTransformationMatrix.h> | 11 #include <public/WebTransformationMatrix.h> |
| 10 | |
| 11 #include "CCLayerTreeTestCommon.h" | |
| 12 | |
| 13 #include <gtest/gtest.h> | |
| 14 #include <wtf/OwnPtr.h> | 12 #include <wtf/OwnPtr.h> |
| 15 #include <wtf/PassOwnPtr.h> | 13 #include <wtf/PassOwnPtr.h> |
| 16 #include <wtf/Vector.h> | 14 #include <wtf/Vector.h> |
| 17 | 15 |
| 18 using namespace std; | 16 using namespace std; |
| 19 using namespace WebKit; | 17 using namespace WebKit; |
| 20 | 18 |
| 21 TEST(WebTransformOperationTest, transformTypesAreUnique) | 19 TEST(WebTransformOperationTest, transformTypesAreUnique) |
| 22 { | 20 { |
| 23 Vector<OwnPtr<WebTransformOperations> > transforms; | 21 Vector<OwnPtr<WebTransformOperations> > transforms; |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 | 608 |
| 611 double progress = 0.5; | 609 double progress = 0.5; |
| 612 | 610 |
| 613 WebTransformationMatrix expected; | 611 WebTransformationMatrix expected; |
| 614 expected.applyPerspective(500 + 0.5 * numeric_limits<double>::max()); | 612 expected.applyPerspective(500 + 0.5 * numeric_limits<double>::max()); |
| 615 | 613 |
| 616 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, identityOperations[i]->blend(o
perations, progress)); | 614 EXPECT_TRANSFORMATION_MATRIX_EQ(expected, identityOperations[i]->blend(o
perations, progress)); |
| 617 } | 615 } |
| 618 } | 616 } |
| 619 | 617 |
| OLD | NEW |