summaryrefslogtreecommitdiffstats
path: root/cc/test/render_pass_test_common.h
blob: 53356cd7c7a02825e69acf377d657cc9e19e75c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 CCRenderPassTestCommon_h
#define CCRenderPassTestCommon_h

#include "CCRenderPass.h"

namespace WebKitTests {

class TestRenderPass : public cc::RenderPass {
public:
    cc::QuadList& quadList() { return m_quadList; }
    cc::SharedQuadStateList& sharedQuadStateList() { return m_sharedQuadStateList; }

    void appendQuad(scoped_ptr<cc::DrawQuad> quad) { m_quadList.append(quad.Pass()); }
    void appendSharedQuadState(scoped_ptr<cc::SharedQuadState> state) { m_sharedQuadStateList.append(state.Pass()); }
};

} //namespace WebKitTests

#endif // CCRenderPassTestCommon_h