Index: cc/output/gl_renderer.h |
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h |
index 841ad74a9ab23ac3fe6bb5fcbea47247b1104586..dc553e7cb20199ea45f91b274a32416e415d9874 100644 |
--- a/cc/output/gl_renderer.h |
+++ b/cc/output/gl_renderer.h |
@@ -20,6 +20,7 @@ |
#include "cc/quads/render_pass_draw_quad.h" |
#include "cc/quads/solid_color_draw_quad.h" |
#include "cc/quads/tile_draw_quad.h" |
+#include "cc/quads/y_video_draw_quad.h" |
#include "cc/quads/yuv_video_draw_quad.h" |
#include "ui/events/latency_info.h" |
#include "ui/gfx/geometry/quad_f.h" |
@@ -219,6 +220,9 @@ class CC_EXPORT GLRenderer : public DirectRenderer { |
void DrawYUVVideoQuad(const DrawingFrame* frame, |
const YUVVideoDrawQuad* quad, |
const gfx::QuadF* clip_region); |
+ void DrawYVideoQuad(const DrawingFrame* frame, |
+ const YVideoDrawQuad* quad, |
+ const gfx::QuadF* clip_region); |
void DrawPictureQuad(const DrawingFrame* frame, |
const PictureDrawQuad* quad, |
const gfx::QuadF* clip_region); |
@@ -350,6 +354,8 @@ class CC_EXPORT GLRenderer : public DirectRenderer { |
VideoStreamTextureProgram; |
typedef ProgramBinding<VertexShaderPosTexYUVStretchOffset, |
FragmentShaderYUVVideo> VideoYUVProgram; |
+ typedef ProgramBinding<VertexShaderPosTexTransform, FragmentShaderYVideo> |
+ VideoYProgram; |
// Special purpose / effects shaders. |
typedef ProgramBinding<VertexShaderPos, FragmentShaderColor> |
@@ -420,6 +426,8 @@ class CC_EXPORT GLRenderer : public DirectRenderer { |
bool use_alpha_texture, |
bool use_nv12, |
bool use_color_lut); |
+ const VideoYProgram* GetVideoYProgram(TexCoordPrecision precision, |
+ SamplerType sampler); |
const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
TexCoordPrecision precision); |
@@ -486,6 +494,8 @@ class CC_EXPORT GLRenderer : public DirectRenderer { |
VideoYUVProgram video_yuv_program_[LAST_TEX_COORD_PRECISION + 1] |
[LAST_SAMPLER_TYPE + 1][2][2][2]; |
+ VideoYProgram video_y_program_[LAST_TEX_COORD_PRECISION + 1] |
+ [LAST_SAMPLER_TYPE + 1]; |
VideoStreamTextureProgram |
video_stream_texture_program_[LAST_TEX_COORD_PRECISION + 1]; |