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_GFX_GPU_MEMORY_BUFFER_H_ | 5 #ifndef UI_GFX_GPU_MEMORY_BUFFER_H_ |
6 #define UI_GFX_GPU_MEMORY_BUFFER_H_ | 6 #define UI_GFX_GPU_MEMORY_BUFFER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include "base/memory/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
12 #include "base/trace_event/memory_dump_manager.h" | 12 #include "base/trace_event/memory_dump_manager.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "ui/gfx/buffer_types.h" | 14 #include "ui/gfx/buffer_types.h" |
15 #include "ui/gfx/generic_shared_memory_id.h" | 15 #include "ui/gfx/generic_shared_memory_id.h" |
16 #include "ui/gfx/geometry/rect.h" | 16 #include "ui/gfx/geometry/rect.h" |
17 #include "ui/gfx/gfx_export.h" | 17 #include "ui/gfx/gfx_export.h" |
18 | 18 |
19 #if defined(USE_OZONE) | 19 #if defined(USE_OZONE) |
20 #include "ui/gfx/native_pixmap_handle_ozone.h" | 20 #include "ui/gfx/native_pixmap_handle.h" |
21 #elif defined(OS_MACOSX) && !defined(OS_IOS) | 21 #elif defined(OS_MACOSX) && !defined(OS_IOS) |
22 #include "ui/gfx/mac/io_surface.h" | 22 #include "ui/gfx/mac/io_surface.h" |
23 #endif | 23 #endif |
24 | 24 |
25 extern "C" typedef struct _ClientBuffer* ClientBuffer; | 25 extern "C" typedef struct _ClientBuffer* ClientBuffer; |
26 | 26 |
27 namespace gfx { | 27 namespace gfx { |
28 | 28 |
29 class ColorSpace; | 29 class ColorSpace; |
30 | 30 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // Returns a platform specific handle for this buffer. | 101 // Returns a platform specific handle for this buffer. |
102 virtual GpuMemoryBufferHandle GetHandle() const = 0; | 102 virtual GpuMemoryBufferHandle GetHandle() const = 0; |
103 | 103 |
104 // Type-checking downcast routine. | 104 // Type-checking downcast routine. |
105 virtual ClientBuffer AsClientBuffer() = 0; | 105 virtual ClientBuffer AsClientBuffer() = 0; |
106 }; | 106 }; |
107 | 107 |
108 } // namespace gfx | 108 } // namespace gfx |
109 | 109 |
110 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_ | 110 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_ |
OLD | NEW |