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> |
11 | 11 |
12 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 #include "ui/gfx/buffer_types.h" | 15 #include "ui/gfx/buffer_types.h" |
16 #include "ui/gfx/generic_shared_memory_id.h" | 16 #include "ui/gfx/generic_shared_memory_id.h" |
| 17 #include "ui/gl/gl_export.h" |
17 #include "ui/gl/gl_image.h" | 18 #include "ui/gl/gl_image.h" |
18 | 19 |
19 #if defined(__OBJC__) | 20 #if defined(__OBJC__) |
20 @class CALayer; | 21 @class CALayer; |
21 #else | 22 #else |
22 typedef void* CALayer; | 23 typedef void* CALayer; |
23 #endif | 24 #endif |
24 | 25 |
25 namespace gl { | 26 namespace gl { |
26 | 27 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer_; | 87 base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer_; |
87 gfx::GenericSharedMemoryId io_surface_id_; | 88 gfx::GenericSharedMemoryId io_surface_id_; |
88 base::ThreadChecker thread_checker_; | 89 base::ThreadChecker thread_checker_; |
89 | 90 |
90 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); | 91 DISALLOW_COPY_AND_ASSIGN(GLImageIOSurface); |
91 }; | 92 }; |
92 | 93 |
93 } // namespace gl | 94 } // namespace gl |
94 | 95 |
95 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ | 96 #endif // UI_GL_GL_IMAGE_IO_SURFACE_H_ |
OLD | NEW |