OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CCRenderPassTestCommon_h | 5 #ifndef CCRenderPassTestCommon_h |
6 #define CCRenderPassTestCommon_h | 6 #define CCRenderPassTestCommon_h |
7 | 7 |
8 #include "CCRenderPass.h" | 8 #include "CCRenderPass.h" |
9 | 9 |
10 namespace WebKitTests { | 10 namespace WebKitTests { |
11 | 11 |
12 class CCTestRenderPass : public cc::CCRenderPass { | 12 class TestRenderPass : public cc::RenderPass { |
13 public: | 13 public: |
14 cc::CCQuadList& quadList() { return m_quadList; } | 14 cc::QuadList& quadList() { return m_quadList; } |
15 cc::CCSharedQuadStateList& sharedQuadStateList() { return m_sharedQuadStateL
ist; } | 15 cc::SharedQuadStateList& sharedQuadStateList() { return m_sharedQuadStateLis
t; } |
16 | 16 |
17 void appendQuad(scoped_ptr<cc::CCDrawQuad> quad) { m_quadList.append(quad.Pa
ss()); } | 17 void appendQuad(scoped_ptr<cc::DrawQuad> quad) { m_quadList.append(quad.Pass
()); } |
18 void appendSharedQuadState(scoped_ptr<cc::CCSharedQuadState> state) { m_shar
edQuadStateList.append(state.Pass()); } | 18 void appendSharedQuadState(scoped_ptr<cc::SharedQuadState> state) { m_shared
QuadStateList.append(state.Pass()); } |
19 }; | 19 }; |
20 | 20 |
21 } //namespace WebKitTests | 21 } //namespace WebKitTests |
22 | 22 |
23 #endif // CCRenderPassTestCommon_h | 23 #endif // CCRenderPassTestCommon_h |
OLD | NEW |