| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_GL_GL_IMAGE_IO_SURFACE_H_ | 5 #ifndef UI_GL_GL_IMAGE_IO_SURFACE_H_ |
| 6 #define UI_GL_GL_IMAGE_IO_SURFACE_H_ | 6 #define UI_GL_GL_IMAGE_IO_SURFACE_H_ |
| 7 | 7 |
| 8 #include <CoreVideo/CVPixelBuffer.h> | 8 #include <CoreVideo/CVPixelBuffer.h> |
| 9 #include <IOSurface/IOSurface.h> | 9 #include <IOSurface/IOSurface.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 class RGBConverter; | 72 class RGBConverter; |
| 73 | 73 |
| 74 const gfx::Size size_; | 74 const gfx::Size size_; |
| 75 const unsigned internalformat_; | 75 const unsigned internalformat_; |
| 76 gfx::BufferFormat format_; | 76 gfx::BufferFormat format_; |
| 77 base::ScopedCFTypeRef<IOSurfaceRef> io_surface_; | 77 base::ScopedCFTypeRef<IOSurfaceRef> io_surface_; |
| 78 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer_; | 78 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer_; |
| 79 gfx::GenericSharedMemoryId io_surface_id_; | 79 gfx::GenericSharedMemoryId io_surface_id_; |
| 80 base::ThreadChecker thread_checker_; | 80 base::ThreadChecker thread_checker_; |
| 81 | 81 |
| 82 // GL state to support 420v IOSurface conversion to RGB. This is retained | |
| 83 // to avoid re-creating the necessary GL programs every frame. | |
| 84 scoped_refptr<RGBConverter> rgb_converter_; | |
| 85 | |
| 86 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); | 82 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); |
| 87 }; | 83 }; |
| 88 | 84 |
| 89 } // namespace gl | 85 } // namespace gl |
| 90 | 86 |
| 91 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ | 87 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ |
| OLD | NEW |