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

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

Issue 11474050: cc: Unify namespaces for all test files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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/render_pass_test_common.h ('k') | cc/test/render_pass_test_utils.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/test/render_pass_test_common.h" 5 #include "cc/test/render_pass_test_common.h"
6 6
7 #include "cc/checkerboard_draw_quad.h" 7 #include "cc/checkerboard_draw_quad.h"
8 #include "cc/debug_border_draw_quad.h" 8 #include "cc/debug_border_draw_quad.h"
9 #include "cc/io_surface_draw_quad.h" 9 #include "cc/io_surface_draw_quad.h"
10 #include "cc/render_pass_draw_quad.h" 10 #include "cc/render_pass_draw_quad.h"
11 #include "cc/solid_color_draw_quad.h" 11 #include "cc/solid_color_draw_quad.h"
12 #include "cc/shared_quad_state.h" 12 #include "cc/shared_quad_state.h"
13 #include "cc/stream_video_draw_quad.h" 13 #include "cc/stream_video_draw_quad.h"
14 #include "cc/texture_draw_quad.h" 14 #include "cc/texture_draw_quad.h"
15 #include "cc/tile_draw_quad.h" 15 #include "cc/tile_draw_quad.h"
16 #include "cc/yuv_video_draw_quad.h" 16 #include "cc/yuv_video_draw_quad.h"
17 #include "cc/resource_provider.h" 17 #include "cc/resource_provider.h"
18 #include "ui/gfx/transform.h" 18 #include "ui/gfx/transform.h"
19 19
20 namespace WebKitTests { 20 namespace cc {
21
22 using cc::DrawQuad;
23 21
24 void TestRenderPass::AppendOneOfEveryQuadType(cc::ResourceProvider* resourceProv ider) { 22 void TestRenderPass::AppendOneOfEveryQuadType(cc::ResourceProvider* resourceProv ider) {
25 gfx::Rect rect(0, 0, 100, 100); 23 gfx::Rect rect(0, 0, 100, 100);
26 gfx::Rect opaque_rect(10, 10, 80, 80); 24 gfx::Rect opaque_rect(10, 10, 80, 80);
27 const float vertex_opacity[] = {1.0f, 1.0f, 1.0f, 1.0f}; 25 const float vertex_opacity[] = {1.0f, 1.0f, 1.0f, 1.0f};
28 cc::ResourceProvider::ResourceId texture_resource = 26 cc::ResourceProvider::ResourceId texture_resource =
29 resourceProvider->createResourceFromExternalTexture(1); 27 resourceProvider->createResourceFromExternalTexture(1);
30 scoped_ptr<cc::SharedQuadState> shared_state = cc::SharedQuadState::Create(); 28 scoped_ptr<cc::SharedQuadState> shared_state = cc::SharedQuadState::Create();
31 shared_state->SetAll(gfx::Transform(), 29 shared_state->SetAll(gfx::Transform(),
32 rect, 30 rect,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 gfx::Size(100, 100), 161 gfx::Size(100, 100),
164 planes[0], 162 planes[0],
165 planes[1], 163 planes[1],
166 planes[2]); 164 planes[2]);
167 AppendQuad(yuv_quad.PassAs<DrawQuad>()); 165 AppendQuad(yuv_quad.PassAs<DrawQuad>());
168 166
169 AppendSharedQuadState(transformed_state.Pass()); 167 AppendSharedQuadState(transformed_state.Pass());
170 AppendSharedQuadState(shared_state.Pass()); 168 AppendSharedQuadState(shared_state.Pass());
171 } 169 }
172 170
173 } // namespace WebKitTests 171 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_common.h ('k') | cc/test/render_pass_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698