| 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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "ui/base/ui_export.h" | 10 #include "ui/gfx/gfx_export.h" |
| 11 | 11 |
| 12 #if defined(OS_ANDROID) | 12 #if defined(OS_ANDROID) |
| 13 #include <third_party/khronos/EGL/egl.h> | 13 #include <third_party/khronos/EGL/egl.h> |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 namespace gfx { | 16 namespace gfx { |
| 17 | 17 |
| 18 enum GpuMemoryBufferType { | 18 enum GpuMemoryBufferType { |
| 19 EMPTY_BUFFER, | 19 EMPTY_BUFFER, |
| 20 SHARED_MEMORY_BUFFER, | 20 SHARED_MEMORY_BUFFER, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // Returns the stride in bytes for the buffer. | 73 // Returns the stride in bytes for the buffer. |
| 74 virtual uint32 GetStride() const = 0; | 74 virtual uint32 GetStride() const = 0; |
| 75 | 75 |
| 76 // Returns a platform specific handle for this buffer. | 76 // Returns a platform specific handle for this buffer. |
| 77 virtual GpuMemoryBufferHandle GetHandle() const = 0; | 77 virtual GpuMemoryBufferHandle GetHandle() const = 0; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace gfx | 80 } // namespace gfx |
| 81 | 81 |
| 82 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_ | 82 #endif // UI_GFX_GPU_MEMORY_BUFFER_H_ |
| OLD | NEW |