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

Side by Side Diff: cc/quads/render_pass_unittest.cc

Issue 13051003: cpplint.py pass on cc/(base|debug|quads|resources)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix prioritized_resource_unittest Created 7 years, 9 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
« no previous file with comments | « cc/quads/render_pass_draw_quad.cc ('k') | cc/quads/shared_quad_state.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 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 "cc/quads/render_pass.h" 5 #include "cc/quads/render_pass.h"
6 6
7 #include "cc/base/math_util.h" 7 #include "cc/base/math_util.h"
8 #include "cc/quads/checkerboard_draw_quad.h" 8 #include "cc/quads/checkerboard_draw_quad.h"
9 #include "cc/test/geometry_test_utils.h" 9 #include "cc/test/geometry_test_utils.h"
10 #include "cc/test/render_pass_test_common.h" 10 #include "cc/test/render_pass_test_common.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h" 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h"
13 #include "third_party/skia/include/effects/SkBlurImageFilter.h" 13 #include "third_party/skia/include/effects/SkBlurImageFilter.h"
14 #include "ui/gfx/transform.h" 14 #include "ui/gfx/transform.h"
15 15
16 using cc::TestRenderPass; 16 using cc::TestRenderPass;
17 17
18 namespace cc { 18 namespace cc {
19 namespace { 19 namespace {
20 20
21 struct RenderPassSize { 21 struct RenderPassSize {
22 // If you add a new field to this class, make sure to add it to the copy() tes ts. 22 // If you add a new field to this class, make sure to add it to the
23 // Copy() tests.
23 RenderPass::Id id; 24 RenderPass::Id id;
24 QuadList quad_list; 25 QuadList quad_list;
25 SharedQuadStateList shared_quad_state_list; 26 SharedQuadStateList shared_quad_state_list;
26 gfx::Transform transform_to_root_target; 27 gfx::Transform transform_to_root_target;
27 gfx::Rect output_rect; 28 gfx::Rect output_rect;
28 gfx::RectF damage_rect; 29 gfx::RectF damage_rect;
29 bool has_transparent_background; 30 bool has_transparent_background;
30 bool has_occlusion_from_outside_target_surface; 31 bool has_occlusion_from_outside_target_surface;
31 }; 32 };
32 33
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 EXPECT_EQ(pass->has_transparent_background, copy->has_transparent_background); 70 EXPECT_EQ(pass->has_transparent_background, copy->has_transparent_background);
70 EXPECT_EQ(pass->has_occlusion_from_outside_target_surface, 71 EXPECT_EQ(pass->has_occlusion_from_outside_target_surface,
71 copy->has_occlusion_from_outside_target_surface); 72 copy->has_occlusion_from_outside_target_surface);
72 EXPECT_EQ(0u, copy->quad_list.size()); 73 EXPECT_EQ(0u, copy->quad_list.size());
73 74
74 EXPECT_EQ(sizeof(RenderPassSize), sizeof(RenderPass)); 75 EXPECT_EQ(sizeof(RenderPassSize), sizeof(RenderPass));
75 } 76 }
76 77
77 } // namespace 78 } // namespace
78 } // namespace cc 79 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/render_pass_draw_quad.cc ('k') | cc/quads/shared_quad_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698