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

Side by Side Diff: cc/yuv_video_draw_quad.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win?? Created 8 years, 1 month 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
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 CCYUVVideoDrawQuad_h 5 #ifndef CCYUVVideoDrawQuad_h
6 #define CCYUVVideoDrawQuad_h 6 #define CCYUVVideoDrawQuad_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/cc_export.h"
10 #include "cc/draw_quad.h" 11 #include "cc/draw_quad.h"
11 #include "cc/video_layer_impl.h" 12 #include "cc/video_layer_impl.h"
12 13
13 namespace cc { 14 namespace cc {
14 15
15 class YUVVideoDrawQuad : public DrawQuad { 16 class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
16 public: 17 public:
17 static scoped_ptr<YUVVideoDrawQuad> create(const SharedQuadState*, const gfx ::Rect&, const VideoLayerImpl::FramePlane& yPlane, const VideoLayerImpl::FramePl ane& uPlane, const VideoLayerImpl::FramePlane& vPlane); 18 static scoped_ptr<YUVVideoDrawQuad> create(const SharedQuadState*, const gfx ::Rect&, const VideoLayerImpl::FramePlane& yPlane, const VideoLayerImpl::FramePl ane& uPlane, const VideoLayerImpl::FramePlane& vPlane);
18 19
19 const VideoLayerImpl::FramePlane& yPlane() const { return m_yPlane; } 20 const VideoLayerImpl::FramePlane& yPlane() const { return m_yPlane; }
20 const VideoLayerImpl::FramePlane& uPlane() const { return m_uPlane; } 21 const VideoLayerImpl::FramePlane& uPlane() const { return m_uPlane; }
21 const VideoLayerImpl::FramePlane& vPlane() const { return m_vPlane; } 22 const VideoLayerImpl::FramePlane& vPlane() const { return m_vPlane; }
22 23
23 static const YUVVideoDrawQuad* materialCast(const DrawQuad*); 24 static const YUVVideoDrawQuad* materialCast(const DrawQuad*);
24 private: 25 private:
25 YUVVideoDrawQuad(const SharedQuadState*, const gfx::Rect&, const VideoLayerI mpl::FramePlane& yPlane, const VideoLayerImpl::FramePlane& uPlane, const VideoLa yerImpl::FramePlane& vPlane); 26 YUVVideoDrawQuad(const SharedQuadState*, const gfx::Rect&, const VideoLayerI mpl::FramePlane& yPlane, const VideoLayerImpl::FramePlane& uPlane, const VideoLa yerImpl::FramePlane& vPlane);
26 27
27 VideoLayerImpl::FramePlane m_yPlane; 28 VideoLayerImpl::FramePlane m_yPlane;
28 VideoLayerImpl::FramePlane m_uPlane; 29 VideoLayerImpl::FramePlane m_uPlane;
29 VideoLayerImpl::FramePlane m_vPlane; 30 VideoLayerImpl::FramePlane m_vPlane;
30 }; 31 };
31 32
32 } 33 }
33 34
34 #endif 35 #endif
OLDNEW
« cc/video_layer_impl.h ('K') | « cc/video_layer_impl.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698