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

Side by Side Diff: cc/CCStreamVideoDrawQuad.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/CCSolidColorLayerImpl.cpp ('k') | cc/CCStreamVideoDrawQuad.cpp » ('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 CCStreamVideoDrawQuad_h 5 #ifndef CCStreamVideoDrawQuad_h
6 #define CCStreamVideoDrawQuad_h 6 #define CCStreamVideoDrawQuad_h
7 7
8 #include "CCDrawQuad.h" 8 #include "CCDrawQuad.h"
9 #include "base/memory/scoped_ptr.h"
9 #include <public/WebTransformationMatrix.h> 10 #include <public/WebTransformationMatrix.h>
10 11
11 #include <wtf/PassOwnPtr.h>
12
13 namespace cc { 12 namespace cc {
14 13
15 #pragma pack(push, 4) 14 #pragma pack(push, 4)
16 15
17 class CCStreamVideoDrawQuad : public CCDrawQuad { 16 class CCStreamVideoDrawQuad : public CCDrawQuad {
18 public: 17 public:
19 static PassOwnPtr<CCStreamVideoDrawQuad> create(const CCSharedQuadState*, co nst IntRect&, unsigned textureId, const WebKit::WebTransformationMatrix&); 18 static scoped_ptr<CCStreamVideoDrawQuad> create(const CCSharedQuadState*, co nst IntRect&, unsigned textureId, const WebKit::WebTransformationMatrix&);
20 19
21 unsigned textureId() const { return m_textureId; } 20 unsigned textureId() const { return m_textureId; }
22 const WebKit::WebTransformationMatrix& matrix() const { return m_matrix; } 21 const WebKit::WebTransformationMatrix& matrix() const { return m_matrix; }
23 22
24 static const CCStreamVideoDrawQuad* materialCast(const CCDrawQuad*); 23 static const CCStreamVideoDrawQuad* materialCast(const CCDrawQuad*);
25 private: 24 private:
26 CCStreamVideoDrawQuad(const CCSharedQuadState*, const IntRect&, unsigned tex tureId, const WebKit::WebTransformationMatrix&); 25 CCStreamVideoDrawQuad(const CCSharedQuadState*, const IntRect&, unsigned tex tureId, const WebKit::WebTransformationMatrix&);
27 26
28 unsigned m_textureId; 27 unsigned m_textureId;
29 WebKit::WebTransformationMatrix m_matrix; 28 WebKit::WebTransformationMatrix m_matrix;
30 }; 29 };
31 30
32 #pragma pack(pop) 31 #pragma pack(pop)
33 32
34 } 33 }
35 34
36 #endif 35 #endif
OLDNEW
« no previous file with comments | « cc/CCSolidColorLayerImpl.cpp ('k') | cc/CCStreamVideoDrawQuad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698