blob: 5c2f676ce0440e9a97379ffab3e862731c163877 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_TEST_RENDER_PASS_TEST_UTILS_H_
#define CC_TEST_RENDER_PASS_TEST_UTILS_H_
#include "cc/base/scoped_ptr_vector.h"
#include "cc/quads/render_pass.h"
#include "third_party/skia/include/core/SkColor.h"
namespace gfx {
class Rect;
class Transform;
}
namespace cc {
class SolidColorDrawQuad;
class TestRenderPass;
// Adds a new render pass with the provided properties to the given
// render pass list.
TestRenderPass* AddRenderPass(
RenderPassList& pass_list,
RenderPass::Id id,
gfx::Rect output_rect,
const gfx::Transform& root_transform);
// Adds a solid quad to a given render pass.
SolidColorDrawQuad* AddQuad(TestRenderPass* pass,
gfx::Rect rect,
SkColor color);
// Adds a solid quad to a given render pass and sets is_clipped=true.
SolidColorDrawQuad* AddClippedQuad(TestRenderPass* pass,
gfx::Rect rect,
SkColor color);
// Adds a render pass quad to an existing render pass.
void AddRenderPassQuad(TestRenderPass* to_pass,
TestRenderPass* contributing_pass);
} // namespace cc
#endif // CC_TEST_RENDER_PASS_TEST_UTILS_H_
|