blob: 240922fa8abe226a90501173a92cac567d4420f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CCYUVVideoDrawQuad_h
#define CCYUVVideoDrawQuad_h
#include "CCDrawQuad.h"
#include "CCVideoLayerImpl.h"
#include <wtf/PassOwnPtr.h>
namespace WebCore {
class CCYUVVideoDrawQuad : public CCDrawQuad {
WTF_MAKE_NONCOPYABLE(CCYUVVideoDrawQuad);
public:
static PassOwnPtr<CCYUVVideoDrawQuad> create(const CCSharedQuadState*, const IntRect&, const CCVideoLayerImpl::FramePlane& yPlane, const CCVideoLayerImpl::FramePlane& uPlane, const CCVideoLayerImpl::FramePlane& vPlane);
const CCVideoLayerImpl::FramePlane& yPlane() const { return m_yPlane; }
const CCVideoLayerImpl::FramePlane& uPlane() const { return m_uPlane; }
const CCVideoLayerImpl::FramePlane& vPlane() const { return m_vPlane; }
static const CCYUVVideoDrawQuad* materialCast(const CCDrawQuad*);
private:
CCYUVVideoDrawQuad(const CCSharedQuadState*, const IntRect&, const CCVideoLayerImpl::FramePlane& yPlane, const CCVideoLayerImpl::FramePlane& uPlane, const CCVideoLayerImpl::FramePlane& vPlane);
CCVideoLayerImpl::FramePlane m_yPlane;
CCVideoLayerImpl::FramePlane m_uPlane;
CCVideoLayerImpl::FramePlane m_vPlane;
};
}
#endif
|