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

Side by Side Diff: cc/test/layer_test_common.cc

Issue 11366094: cc: Create a Region class that wraps SkRegion, to replace use of WebCore::Region. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move deg2rad etc to MathUtil 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" 5 #include "config.h"
6 6
7 #include "cc/test/layer_test_common.h" 7 #include "cc/test/layer_test_common.h"
8 8
9 #include "Region.h"
10 #include "cc/draw_quad.h" 9 #include "cc/draw_quad.h"
11 #include "cc/math_util.h" 10 #include "cc/math_util.h"
11 #include "cc/region.h"
12 #include "cc/render_pass.h" 12 #include "cc/render_pass.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 #include "ui/gfx/point_conversions.h" 15 #include "ui/gfx/point_conversions.h"
16 #include "ui/gfx/rect_conversions.h" 16 #include "ui/gfx/rect_conversions.h"
17 #include "ui/gfx/size_conversions.h" 17 #include "ui/gfx/size_conversions.h"
18 18
19 namespace LayerTestCommon { 19 namespace LayerTestCommon {
20 20
21 // Align with expected and actual output 21 // Align with expected and actual output
(...skipping 28 matching lines...) Expand all
50 50
51 EXPECT_TRUE(rect.Contains(quadRect)) << quadString << i; 51 EXPECT_TRUE(rect.Contains(quadRect)) << quadString << i;
52 EXPECT_TRUE(remaining.Contains(quadRect)) << quadString << i; 52 EXPECT_TRUE(remaining.Contains(quadRect)) << quadString << i;
53 remaining.Subtract(quadRect); 53 remaining.Subtract(quadRect);
54 } 54 }
55 55
56 EXPECT_TRUE(remaining.IsEmpty()); 56 EXPECT_TRUE(remaining.IsEmpty());
57 } 57 }
58 58
59 } // namespace LayerTestCommon 59 } // namespace LayerTestCommon
OLDNEW
« cc/region.cc ('K') | « cc/stubs/Region.h ('k') | cc/test/occlusion_tracker_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698