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

Side by Side Diff: cc/test/render_pass_test_utils.h

Issue 12965007: Fix cpplint errors in cc/(animation|input|layers|trees|test)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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/test/pixel_test_utils.cc ('k') | cc/test/render_pass_test_utils.cc » ('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 #ifndef CC_TEST_RENDER_PASS_TEST_UTILS_H_ 5 #ifndef CC_TEST_RENDER_PASS_TEST_UTILS_H_
6 #define CC_TEST_RENDER_PASS_TEST_UTILS_H_ 6 #define CC_TEST_RENDER_PASS_TEST_UTILS_H_
7 7
8 #include "cc/base/scoped_ptr_vector.h" 8 #include "cc/base/scoped_ptr_vector.h"
9 #include "cc/quads/render_pass.h" 9 #include "cc/quads/render_pass.h"
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Rect; 13 class Rect;
14 class Transform; 14 class Transform;
15 } 15 }
16 16
17 namespace cc { 17 namespace cc {
18 18
19 class SolidColorDrawQuad; 19 class SolidColorDrawQuad;
20 class TestRenderPass; 20 class TestRenderPass;
21 21
22 // Adds a new render pass with the provided properties to the given 22 // Adds a new render pass with the provided properties to the given
23 // render pass list. 23 // render pass list.
24 TestRenderPass* AddRenderPass( 24 TestRenderPass* AddRenderPass(
25 RenderPassList& pass_list, 25 RenderPassList* pass_list,
26 RenderPass::Id id, 26 RenderPass::Id id,
27 gfx::Rect output_rect, 27 gfx::Rect output_rect,
28 const gfx::Transform& root_transform); 28 const gfx::Transform& root_transform);
29 29
30 // Adds a solid quad to a given render pass. 30 // Adds a solid quad to a given render pass.
31 SolidColorDrawQuad* AddQuad(TestRenderPass* pass, 31 SolidColorDrawQuad* AddQuad(TestRenderPass* pass,
32 gfx::Rect rect, 32 gfx::Rect rect,
33 SkColor color); 33 SkColor color);
34 34
35 // Adds a solid quad to a given render pass and sets is_clipped=true. 35 // Adds a solid quad to a given render pass and sets is_clipped=true.
36 SolidColorDrawQuad* AddClippedQuad(TestRenderPass* pass, 36 SolidColorDrawQuad* AddClippedQuad(TestRenderPass* pass,
37 gfx::Rect rect, 37 gfx::Rect rect,
38 SkColor color); 38 SkColor color);
39 39
40 // Adds a render pass quad to an existing render pass. 40 // Adds a render pass quad to an existing render pass.
41 void AddRenderPassQuad(TestRenderPass* to_pass, 41 void AddRenderPassQuad(TestRenderPass* to_pass,
42 TestRenderPass* contributing_pass); 42 TestRenderPass* contributing_pass);
43 43
44 } // namespace cc 44 } // namespace cc
45 45
46 #endif // CC_TEST_RENDER_PASS_TEST_UTILS_H_ 46 #endif // CC_TEST_RENDER_PASS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « cc/test/pixel_test_utils.cc ('k') | cc/test/render_pass_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698