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 CCYUVVideoDrawQuad_h | 5 #ifndef CCYUVVideoDrawQuad_h |
6 #define CCYUVVideoDrawQuad_h | 6 #define CCYUVVideoDrawQuad_h |
7 | 7 |
8 #include "CCDrawQuad.h" | 8 #include "CCDrawQuad.h" |
9 #include "CCVideoLayerImpl.h" | 9 #include "CCVideoLayerImpl.h" |
10 #include <wtf/PassOwnPtr.h> | 10 #include <wtf/PassOwnPtr.h> |
11 | 11 |
12 namespace WebCore { | 12 namespace cc { |
13 | 13 |
14 class CCYUVVideoDrawQuad : public CCDrawQuad { | 14 class CCYUVVideoDrawQuad : public CCDrawQuad { |
15 WTF_MAKE_NONCOPYABLE(CCYUVVideoDrawQuad); | 15 WTF_MAKE_NONCOPYABLE(CCYUVVideoDrawQuad); |
16 public: | 16 public: |
17 static PassOwnPtr<CCYUVVideoDrawQuad> create(const CCSharedQuadState*, const
IntRect&, const CCVideoLayerImpl::FramePlane& yPlane, const CCVideoLayerImpl::F
ramePlane& uPlane, const CCVideoLayerImpl::FramePlane& vPlane); | 17 static PassOwnPtr<CCYUVVideoDrawQuad> create(const CCSharedQuadState*, const
IntRect&, const CCVideoLayerImpl::FramePlane& yPlane, const CCVideoLayerImpl::F
ramePlane& uPlane, const CCVideoLayerImpl::FramePlane& vPlane); |
18 | 18 |
19 const CCVideoLayerImpl::FramePlane& yPlane() const { return m_yPlane; } | 19 const CCVideoLayerImpl::FramePlane& yPlane() const { return m_yPlane; } |
20 const CCVideoLayerImpl::FramePlane& uPlane() const { return m_uPlane; } | 20 const CCVideoLayerImpl::FramePlane& uPlane() const { return m_uPlane; } |
21 const CCVideoLayerImpl::FramePlane& vPlane() const { return m_vPlane; } | 21 const CCVideoLayerImpl::FramePlane& vPlane() const { return m_vPlane; } |
22 | 22 |
23 static const CCYUVVideoDrawQuad* materialCast(const CCDrawQuad*); | 23 static const CCYUVVideoDrawQuad* materialCast(const CCDrawQuad*); |
24 private: | 24 private: |
25 CCYUVVideoDrawQuad(const CCSharedQuadState*, const IntRect&, const CCVideoLa
yerImpl::FramePlane& yPlane, const CCVideoLayerImpl::FramePlane& uPlane, const C
CVideoLayerImpl::FramePlane& vPlane); | 25 CCYUVVideoDrawQuad(const CCSharedQuadState*, const IntRect&, const CCVideoLa
yerImpl::FramePlane& yPlane, const CCVideoLayerImpl::FramePlane& uPlane, const C
CVideoLayerImpl::FramePlane& vPlane); |
26 | 26 |
27 CCVideoLayerImpl::FramePlane m_yPlane; | 27 CCVideoLayerImpl::FramePlane m_yPlane; |
28 CCVideoLayerImpl::FramePlane m_uPlane; | 28 CCVideoLayerImpl::FramePlane m_uPlane; |
29 CCVideoLayerImpl::FramePlane m_vPlane; | 29 CCVideoLayerImpl::FramePlane m_vPlane; |
30 }; | 30 }; |
31 | 31 |
32 } | 32 } |
33 | 33 |
34 #endif | 34 #endif |
OLD | NEW |