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

Unified Diff: cc/yuva_video_draw_quad.h

Issue 12157002: Adding YUVA support for enabling Alpha Playback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove files unrelated to cc/ Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: cc/yuva_video_draw_quad.h
diff --git a/cc/yuv_video_draw_quad.h b/cc/yuva_video_draw_quad.h
similarity index 65%
copy from cc/yuv_video_draw_quad.h
copy to cc/yuva_video_draw_quad.h
index 13c24cf4d1b9466eb8195c3f9fab4099daa6dfb2..77cf66da0f6ba5fb634d0b5c9dcbcbeb7ef4ca90 100644
--- a/cc/yuv_video_draw_quad.h
+++ b/cc/yuva_video_draw_quad.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CC_YUV_VIDEO_DRAW_QUAD_H_
-#define CC_YUV_VIDEO_DRAW_QUAD_H_
+#ifndef CC_YUVA_VIDEO_DRAW_QUAD_H_
+#define CC_YUVA_VIDEO_DRAW_QUAD_H_
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
@@ -13,11 +13,11 @@
namespace cc {
-class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
+class CC_EXPORT YUVAVideoDrawQuad : public DrawQuad {
public:
- virtual ~YUVVideoDrawQuad();
+ virtual ~YUVAVideoDrawQuad();
- static scoped_ptr<YUVVideoDrawQuad> Create();
+ static scoped_ptr<YUVAVideoDrawQuad> Create();
void SetNew(const SharedQuadState* shared_quad_state,
gfx::Rect rect,
@@ -25,7 +25,8 @@ class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
gfx::SizeF tex_scale,
const VideoLayerImpl::FramePlane& y_plane,
const VideoLayerImpl::FramePlane& u_plane,
- const VideoLayerImpl::FramePlane& v_plane);
+ const VideoLayerImpl::FramePlane& v_plane,
+ const VideoLayerImpl::FramePlane& a_plane);
void SetAll(const SharedQuadState* shared_quad_state,
gfx::Rect rect,
@@ -35,21 +36,20 @@ class CC_EXPORT YUVVideoDrawQuad : public DrawQuad {
gfx::SizeF tex_scale,
const VideoLayerImpl::FramePlane& y_plane,
const VideoLayerImpl::FramePlane& u_plane,
- const VideoLayerImpl::FramePlane& v_plane);
+ const VideoLayerImpl::FramePlane& v_plane,
+ const VideoLayerImpl::FramePlane& a_plane);
gfx::SizeF tex_scale;
VideoLayerImpl::FramePlane y_plane;
VideoLayerImpl::FramePlane u_plane;
VideoLayerImpl::FramePlane v_plane;
+ VideoLayerImpl::FramePlane a_plane;
- virtual void AppendResources(ResourceProvider::ResourceIdArray* resources)
- OVERRIDE;
-
- static const YUVVideoDrawQuad* MaterialCast(const DrawQuad*);
+ static const YUVAVideoDrawQuad* MaterialCast(const DrawQuad*);
private:
- YUVVideoDrawQuad();
+ YUVAVideoDrawQuad();
};
}
-#endif // CC_YUV_VIDEO_DRAW_QUAD_H_
+#endif // CC_YUVA_VIDEO_DRAW_QUAD_H_

Powered by Google App Engine
This is Rietveld 408576698