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

Unified Diff: ui/gl/gl_image_io_surface.h

Issue 1419733005: gpu: Add YCbCr 420v extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually enable/disable capabilities. Typo. Created 5 years 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 | « ui/gl/gl_helper.cc ('k') | ui/gl/gl_image_io_surface.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_io_surface.h
diff --git a/ui/gl/gl_image_io_surface.h b/ui/gl/gl_image_io_surface.h
index 186f5a972e14bfa9c85a523ebbf61fa2eee197d8..623ad21b6b76f6766f5f5a2e0a50be45c987cb6f 100644
--- a/ui/gl/gl_image_io_surface.h
+++ b/ui/gl/gl_image_io_surface.h
@@ -53,6 +53,8 @@ class GL_EXPORT GLImageIOSurface : public GLImage {
static void SetLayerForWidget(gfx::AcceleratedWidget widget, CALayer* layer);
+ static unsigned GetInternalFormatForTesting(gfx::BufferFormat format);
+
protected:
~GLImageIOSurface() override;
@@ -64,6 +66,15 @@ class GL_EXPORT GLImageIOSurface : public GLImage {
gfx::GenericSharedMemoryId io_surface_id_;
base::ThreadChecker thread_checker_;
+ // GL state to support 420v IOSurface conversion to RGB.
+ unsigned framebuffer_ = 0;
+ unsigned vertex_shader_ = 0;
+ unsigned fragment_shader_ = 0;
+ unsigned program_ = 0;
+ int size_location_ = -1;
+ unsigned vertex_buffer_ = 0;
+ unsigned yuv_textures_[2] = {};
+
DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface);
};
« no previous file with comments | « ui/gl/gl_helper.cc ('k') | ui/gl/gl_image_io_surface.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698