blob: 0fd325f02f39a80748cd1953d21e2638b67dade0 [file] [log] [blame]
James Robinson646469d2014-10-03 15:33:28 -07001// 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.
4
5#ifndef CC_TEST_RENDER_PASS_TEST_COMMON_H_
6#define CC_TEST_RENDER_PASS_TEST_COMMON_H_
7
8#include "cc/quads/render_pass.h"
9
10namespace cc {
11class ResourceProvider;
12}
13
14namespace cc {
15
16class TestRenderPass : public RenderPass {
17 public:
18 static scoped_ptr<TestRenderPass> Create() {
19 return make_scoped_ptr(new TestRenderPass);
20 }
21
22 static const unsigned int kSyncPointForMailboxTextureQuad = 30;
23
24 void AppendOneOfEveryQuadType(ResourceProvider* resource_provider,
25 RenderPassId child_pass);
26
27 protected:
28 TestRenderPass() : RenderPass() {}
29};
30
31} // namespace cc
32
33#endif // CC_TEST_RENDER_PASS_TEST_COMMON_H_