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