Index: cc/yuv_video_draw_quad.h |
diff --git a/cc/yuv_video_draw_quad.h b/cc/yuv_video_draw_quad.h |
index 638cbb270ce9b24689d5095baf174ade4f4d1a13..5d574b7bb9b882c094d2f31f1d4836726c2e5b6e 100644 |
--- a/cc/yuv_video_draw_quad.h |
+++ b/cc/yuv_video_draw_quad.h |
@@ -1,3 +1,36 @@ |
// 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 "base/basictypes.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "CCDrawQuad.h" |
+#include "CCVideoLayerImpl.h" |
+ |
+namespace cc { |
+ |
+class CCYUVVideoDrawQuad : public CCDrawQuad { |
+public: |
+ static scoped_ptr<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; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(CCYUVVideoDrawQuad); |
+}; |
+ |
+} |
+ |
+#endif |