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

Side by Side Diff: cc/resources/layer_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/resources/layer_quad.cc ('k') | cc/resources/layer_tiling_data.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/resources/layer_quad.h" 5 #include "cc/resources/layer_quad.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "ui/gfx/quad_f.h" 8 #include "ui/gfx/geometry/quad_f.h"
9 9
10 namespace cc { 10 namespace cc {
11 namespace { 11 namespace {
12 12
13 TEST(LayerQuadTest, QuadFConversion) { 13 TEST(LayerQuadTest, QuadFConversion) {
14 gfx::PointF p1(-0.5f, -0.5f); 14 gfx::PointF p1(-0.5f, -0.5f);
15 gfx::PointF p2(0.5f, -0.5f); 15 gfx::PointF p2(0.5f, -0.5f);
16 gfx::PointF p3(0.5f, 0.5f); 16 gfx::PointF p3(0.5f, 0.5f);
17 gfx::PointF p4(-0.5f, 0.5f); 17 gfx::PointF p4(-0.5f, 0.5f);
18 18
(...skipping 14 matching lines...) Expand all
33 33
34 gfx::QuadF quad(p1, p2, p3, p4); 34 gfx::QuadF quad(p1, p2, p3, p4);
35 LayerQuad layer_quad(quad); 35 LayerQuad layer_quad(quad);
36 quad.Scale(2.f, 2.f); 36 quad.Scale(2.f, 2.f);
37 layer_quad.Inflate(0.5f); 37 layer_quad.Inflate(0.5f);
38 EXPECT_EQ(layer_quad.ToQuadF(), quad); 38 EXPECT_EQ(layer_quad.ToQuadF(), quad);
39 } 39 }
40 40
41 } // namespace 41 } // namespace
42 } // namespace cc 42 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/layer_quad.cc ('k') | cc/resources/layer_tiling_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698