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

Unified Diff: cc/output/gl_renderer.h

Issue 12157002: Adding YUVA support for enabling Alpha Playback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index 549f7aeccefac4cc4ed4a3fa42fced19994e7021..a5d7a3d12935536aa39a4ca9fa3a6263ffa1f1ca 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -144,6 +144,8 @@ class CC_EXPORT GLRenderer :
ResourceProvider::ResourceId resource_id);
void DrawYUVVideoQuad(const DrawingFrame* frame,
const YUVVideoDrawQuad* quad);
+ void DrawYUVAVideoQuad(const DrawingFrame* frame,
+ const YUVVideoDrawQuad* quad);
void DrawPictureQuad(const DrawingFrame* frame,
const PictureDrawQuad* quad);
@@ -250,6 +252,8 @@ class CC_EXPORT GLRenderer :
VideoStreamTextureProgram;
typedef ProgramBinding<VertexShaderPosTexYUVStretch, FragmentShaderYUVVideo>
VideoYUVProgram;
+ typedef ProgramBinding<VertexShaderPosTexYUVStretch, FragmentShaderYUVAVideo>
+ VideoYUVAProgram;
// Special purpose / effects shaders.
typedef ProgramBinding<VertexShaderPos, FragmentShaderColor>
@@ -277,6 +281,7 @@ class CC_EXPORT GLRenderer :
const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram();
const VideoYUVProgram* GetVideoYUVProgram();
+ const VideoYUVAProgram* GetVideoYUVAProgram();
danakj 2013/04/03 00:42:04 By the way, when adding a new program, please add
vignesh 2013/04/04 00:37:33 Done.
const VideoStreamTextureProgram* GetVideoStreamTextureProgram();
const DebugBorderProgram* GetDebugBorderProgram();
@@ -301,6 +306,7 @@ class CC_EXPORT GLRenderer :
scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_;
scoped_ptr<VideoYUVProgram> video_yuv_program_;
+ scoped_ptr<VideoYUVAProgram> video_yuva_program_;
scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_;
scoped_ptr<DebugBorderProgram> debug_border_program_;
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698