| 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 "base/files/file.h" |
| 8 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
| 9 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 10 #include "ui/gfx/gfx_export.h" | 11 #include "ui/gfx/gfx_export.h" |
| 11 | 12 |
| 12 extern "C" typedef struct _ClientBuffer* ClientBuffer; | 13 extern "C" typedef struct _ClientBuffer* ClientBuffer; |
| 13 | 14 |
| 14 namespace gfx { | 15 namespace gfx { |
| 15 | 16 |
| 16 enum GpuMemoryBufferType { | 17 enum GpuMemoryBufferType { |
| 17 EMPTY_BUFFER, | 18 EMPTY_BUFFER, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // Returns a platform specific handle for this buffer. | 88 // Returns a platform specific handle for this buffer. |
| 88 virtual GpuMemoryBufferHandle GetHandle() const = 0; | 89 virtual GpuMemoryBufferHandle GetHandle() const = 0; |
| 89 | 90 |
| 90 // Type-checking downcast routine. | 91 // Type-checking downcast routine. |
| 91 virtual ClientBuffer AsClientBuffer() = 0; | 92 virtual ClientBuffer AsClientBuffer() = 0; |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 } // namespace gfx | 95 } // namespace gfx |
| 95 | 96 |
| 96 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_ | 97 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_ |
| OLD | NEW |