Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: cc/test/CCRenderPassTestCommon.h

Issue 10989024: cc: Remove OwnPtr usage from CCRenderPass and CCDrawQuad class hierarchy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/CCYUVVideoDrawQuad.cpp ('k') | cc/test/MockCCQuadCuller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « cc/CCYUVVideoDrawQuad.cpp ('k') | cc/test/MockCCQuadCuller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698