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

Side by Side Diff: webkit/compositor/WebTransformOperationsTest.cpp

Issue 10920059: Rolls cc and webkit_compositor up to 127340 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 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" 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
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
OLDNEW
« no previous file with comments | « webkit/compositor/WebTransformAnimationCurveImpl.cpp ('k') | webkit/compositor/WebTransformationMatrixTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698