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

Unified Diff: cc/output/gl_renderer.h

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 2 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 | « cc/output/ca_layer_overlay.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
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 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];
« no previous file with comments | « cc/output/ca_layer_overlay.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698