Revert "Merged all Chromoting Host code into remoting_core.dll (Windows)."
[chromium-blink-merge.git] / cc / test / render_pass_test_utils.h
blobb4d8dba4e3de64ab3b382250c58df849ba86517a
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
3 // found in the LICENSE file.
5 #ifndef CC_TEST_RENDER_PASS_TEST_UTILS_H_
6 #define CC_TEST_RENDER_PASS_TEST_UTILS_H_
8 #include "cc/render_pass.h"
9 #include "cc/scoped_ptr_vector.h"
10 #include "third_party/skia/include/core/SkColor.h"
12 namespace gfx {
13 class Rect;
14 class Transform;
17 namespace cc {
19 class SolidColorDrawQuad;
20 class TestRenderPass;
22 // Adds a new render pass with the provided properties to the given
23 // render pass list.
24 TestRenderPass* addRenderPass(
25 RenderPassList& passList,
26 RenderPass::Id id,
27 const gfx::Rect& outputRect,
28 const gfx::Transform& rootTransform);
30 // Adds a solid quad to a given render pass.
31 SolidColorDrawQuad* addQuad(TestRenderPass* pass,
32 const gfx::Rect& rect,
33 SkColor color);
35 // Adds a render pass quad to an existing render pass.
36 void addRenderPassQuad(TestRenderPass* toPass,
37 TestRenderPass* contributingPass);
39 } // namespace cc
41 #endif // CC_TEST_RENDER_PASS_TEST_UTILS_H_