OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CCRenderPassTestCommon_h |
| 6 #define CCRenderPassTestCommon_h |
| 7 |
| 8 #include "CCRenderPass.h" |
| 9 #include <wtf/PassOwnPtr.h> |
| 10 |
| 11 namespace WebKitTests { |
| 12 |
| 13 class CCTestRenderPass : public cc::CCRenderPass { |
| 14 public: |
| 15 cc::CCQuadList& quadList() { return m_quadList; } |
| 16 cc::CCSharedQuadStateList& sharedQuadStateList() { return m_sharedQuadStateL
ist; } |
| 17 |
| 18 void appendQuad(PassOwnPtr<cc::CCDrawQuad> quad) { m_quadList.append(quad);
} |
| 19 void appendSharedQuadState(PassOwnPtr<cc::CCSharedQuadState> state) { m_shar
edQuadStateList.append(state); } |
| 20 }; |
| 21 |
| 22 } //namespace WebKitTests |
| 23 |
| 24 #endif // CCRenderPassTestCommon_h |
OLD | NEW |