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 // Temporary forwarding header |
6 #define CCRenderPassTestCommon_h | 6 #include "cc/test/render_pass_test_common.h" |
7 | |
8 #include "CCRenderPass.h" | |
9 | |
10 namespace WebKitTests { | |
11 | |
12 class CCTestRenderPass : public cc::CCRenderPass { | |
13 public: | |
14 cc::CCQuadList& quadList() { return m_quadList; } | |
15 cc::CCSharedQuadStateList& sharedQuadStateList() { return m_sharedQuadStateL
ist; } | |
16 | |
17 void appendQuad(scoped_ptr<cc::CCDrawQuad> quad) { m_quadList.append(quad.Pa
ss()); } | |
18 void appendSharedQuadState(scoped_ptr<cc::CCSharedQuadState> state) { m_shar
edQuadStateList.append(state.Pass()); } | |
19 }; | |
20 | |
21 } //namespace WebKitTests | |
22 | |
23 #endif // CCRenderPassTestCommon_h | |
OLD | NEW |