Fix build break
[chromium-blink-merge.git] / cc / test / render_pass_test_utils.h
blobfdc63660b8fe5067ec7c07c72a99b1517f387264
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/base/scoped_ptr_vector.h"
9 #include "cc/quads/render_pass.h"
10 #include "cc/resources/resource_provider.h"
11 #include "third_party/skia/include/core/SkColor.h"
13 namespace gfx {
14 class Rect;
15 class Transform;
18 namespace cc {
20 class SolidColorDrawQuad;
21 class TestRenderPass;
23 // Adds a new render pass with the provided properties to the given
24 // render pass list.
25 TestRenderPass* AddRenderPass(
26 RenderPassList* pass_list,
27 RenderPass::Id id,
28 gfx::Rect output_rect,
29 const gfx::Transform& root_transform);
31 // Adds a solid quad to a given render pass.
32 SolidColorDrawQuad* AddQuad(TestRenderPass* pass,
33 gfx::Rect rect,
34 SkColor color);
36 // Adds a solid quad to a given render pass and sets is_clipped=true.
37 SolidColorDrawQuad* AddClippedQuad(TestRenderPass* pass,
38 gfx::Rect rect,
39 SkColor color);
41 // Adds a render pass quad to an existing render pass.
42 void AddRenderPassQuad(TestRenderPass* to_pass,
43 TestRenderPass* contributing_pass);
45 // Adds a render pass quad with the given mask resource, filter, and transform.
46 void AddRenderPassQuad(TestRenderPass* toPass,
47 TestRenderPass* contributingPass,
48 ResourceProvider::ResourceId mask_resource_id,
49 skia::RefPtr<SkImageFilter> filter,
50 gfx::Transform transform);
52 } // namespace cc
54 #endif // CC_TEST_RENDER_PASS_TEST_UTILS_H_