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

Side by Side Diff: cc/base/float_quad_unittest.cc

Issue 660333004: cc cleanup: Update paths to geometry headers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 2 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
« no previous file with comments | « cc/animation/transform_operations_unittest.cc ('k') | cc/base/invalidation_region.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/base/math_util.h" 5 #include "cc/base/math_util.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "ui/gfx/quad_f.h" 7 #include "ui/gfx/geometry/quad_f.h"
8 #include "ui/gfx/rect_f.h" 8 #include "ui/gfx/geometry/rect_f.h"
9 #include "ui/gfx/transform.h" 9 #include "ui/gfx/transform.h"
10 10
11 namespace cc { 11 namespace cc {
12 namespace { 12 namespace {
13 13
14 // TODO(danakj) Move this test to ui/gfx/ when we don't need MathUtil::MapQuad. 14 // TODO(danakj) Move this test to ui/gfx/ when we don't need MathUtil::MapQuad.
15 TEST(FloatQuadTest, IsRectilinearTest) { 15 TEST(FloatQuadTest, IsRectilinearTest) {
16 const int kNumRectilinear = 8; 16 const int kNumRectilinear = 8;
17 gfx::Transform rectilinear_trans[kNumRectilinear]; 17 gfx::Transform rectilinear_trans[kNumRectilinear];
18 rectilinear_trans[1].Rotate(90.f); 18 rectilinear_trans[1].Rotate(90.f);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bool clipped = false; 53 bool clipped = false;
54 gfx::QuadF quad = 54 gfx::QuadF quad =
55 MathUtil::MapQuad(non_rectilinear_trans[i], original, &clipped); 55 MathUtil::MapQuad(non_rectilinear_trans[i], original, &clipped);
56 ASSERT_TRUE(!clipped) << "case " << i; 56 ASSERT_TRUE(!clipped) << "case " << i;
57 EXPECT_FALSE(quad.IsRectilinear()) << "case " << i; 57 EXPECT_FALSE(quad.IsRectilinear()) << "case " << i;
58 } 58 }
59 } 59 }
60 60
61 } // namespace 61 } // namespace
62 } // namespace cc 62 } // namespace cc
OLDNEW
« no previous file with comments | « cc/animation/transform_operations_unittest.cc ('k') | cc/base/invalidation_region.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698