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

Side by Side Diff: cc/test/render_pass_test_utils.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_utils.h ('k') | cc/test/run_all_unittests.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 #include "cc/test/render_pass_test_utils.h" 5 #include "cc/test/render_pass_test_utils.h"
6 6
7 #include "cc/append_quads_data.h" 7 #include "cc/append_quads_data.h"
8 #include "cc/quad_sink.h" 8 #include "cc/quad_sink.h"
9 #include "cc/render_pass_draw_quad.h" 9 #include "cc/render_pass_draw_quad.h"
10 #include "cc/shared_quad_state.h" 10 #include "cc/shared_quad_state.h"
11 #include "cc/solid_color_draw_quad.h" 11 #include "cc/solid_color_draw_quad.h"
12 #include "cc/test/mock_quad_culler.h" 12 #include "cc/test/mock_quad_culler.h"
13 #include "cc/test/render_pass_test_common.h" 13 #include "cc/test/render_pass_test_common.h"
14 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 15
16 using WebKitTests::TestRenderPass;
17
18 namespace cc { 16 namespace cc {
19 17
20 TestRenderPass* addRenderPass(ScopedPtrVector<RenderPass>& passList, 18 TestRenderPass* addRenderPass(ScopedPtrVector<RenderPass>& passList,
21 RenderPass::Id id, 19 RenderPass::Id id,
22 const gfx::Rect& outputRect, 20 const gfx::Rect& outputRect,
23 const gfx::Transform& rootTransform) { 21 const gfx::Transform& rootTransform) {
24 scoped_ptr<TestRenderPass> pass(TestRenderPass::Create()); 22 scoped_ptr<TestRenderPass> pass(TestRenderPass::Create());
25 pass->SetNew(id, outputRect, outputRect, rootTransform); 23 pass->SetNew(id, outputRect, outputRect, rootTransform);
26 TestRenderPass* saved = pass.get(); 24 TestRenderPass* saved = pass.get();
27 passList.append(pass.PassAs<RenderPass>()); 25 passList.append(pass.PassAs<RenderPass>());
(...skipping 24 matching lines...) Expand all
52 quadSink.useSharedQuadState(SharedQuadState::Create()); 50 quadSink.useSharedQuadState(SharedQuadState::Create());
53 sharedState->SetAll(gfx::Transform(), outputRect, outputRect, outputRect, 51 sharedState->SetAll(gfx::Transform(), outputRect, outputRect, outputRect,
54 false, 1); 52 false, 1);
55 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); 53 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create();
56 quad->SetNew(sharedState, outputRect, contributingPass->id, false, 0, 54 quad->SetNew(sharedState, outputRect, contributingPass->id, false, 0,
57 outputRect, gfx::RectF()); 55 outputRect, gfx::RectF());
58 quadSink.append(quad.PassAs<DrawQuad>(), data); 56 quadSink.append(quad.PassAs<DrawQuad>(), data);
59 } 57 }
60 58
61 } // namespace cc 59 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_utils.h ('k') | cc/test/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698