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

Unified Diff: ui/gl/gl_image_io_surface.h

Issue 1862183003: Mac h264: Work around CGLContext+VTDecompresionSession deadlock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add me as ui owner for Mac Created 4 years, 8 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: 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 1df77e068892c120b2bdb5a2500c0b12018e6358..99c97fadc767c69944cfb1c020bf492beca708ac 100644
--- a/ui/gl/gl_image_io_surface.h
+++ b/ui/gl/gl_image_io_surface.h
@@ -11,6 +11,7 @@
#include "base/mac/scoped_cftyperef.h"
#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_checker.h"
#include "ui/gfx/buffer_types.h"
#include "ui/gfx/generic_shared_memory_id.h"
@@ -71,6 +72,8 @@ class GL_EXPORT GLImageIOSurface : public GLImage {
~GLImageIOSurface() override;
private:
+ class RGBConverter;
+
const gfx::Size size_;
const unsigned internalformat_;
gfx::BufferFormat format_;
@@ -80,13 +83,7 @@ class GL_EXPORT GLImageIOSurface : public GLImage {
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] = {};
+ scoped_ptr<RGBConverter> rgb_converter_;
DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface);
};

Powered by Google App Engine
This is Rietveld 408576698