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 <IOSurface/IOSurface.h> | 8 #include <IOSurface/IOSurface.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 gfx::GenericSharedMemoryId io_surface_id_; | 68 gfx::GenericSharedMemoryId io_surface_id_; |
69 base::ThreadChecker thread_checker_; | 69 base::ThreadChecker thread_checker_; |
70 | 70 |
71 // GL state to support 420v IOSurface conversion to RGB. | 71 // GL state to support 420v IOSurface conversion to RGB. |
72 unsigned framebuffer_ = 0; | 72 unsigned framebuffer_ = 0; |
73 unsigned vertex_shader_ = 0; | 73 unsigned vertex_shader_ = 0; |
74 unsigned fragment_shader_ = 0; | 74 unsigned fragment_shader_ = 0; |
75 unsigned program_ = 0; | 75 unsigned program_ = 0; |
76 int size_location_ = -1; | 76 int size_location_ = -1; |
77 unsigned vertex_buffer_ = 0; | 77 unsigned vertex_buffer_ = 0; |
78 unsigned yuv_textures_[2] = {}; | |
79 | 78 |
80 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); | 79 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); |
81 }; | 80 }; |
82 | 81 |
83 } // namespace gl | 82 } // namespace gl |
84 | 83 |
85 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ | 84 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ |
OLD | NEW |