OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_ | 5 #ifndef GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_ |
6 #define GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_ | 6 #define GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_ |
7 | 7 |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
9 #include "base/hash.h" | 9 #include "base/hash.h" |
10 #include "ui/gfx/buffer_types.h" | 10 #include "ui/gfx/buffer_types.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 } // namespace BASE_HASH_NAMESPACE | 31 } // namespace BASE_HASH_NAMESPACE |
32 | 32 |
33 namespace gpu { | 33 namespace gpu { |
34 | 34 |
35 bool AreNativeGpuMemoryBuffersEnabled(); | 35 bool AreNativeGpuMemoryBuffersEnabled(); |
36 | 36 |
37 // Returns the set of supported configurations. | 37 // Returns the set of supported configurations. |
38 GpuMemoryBufferConfigurationSet GetNativeGpuMemoryBufferConfigurations(); | 38 GpuMemoryBufferConfigurationSet GetNativeGpuMemoryBufferConfigurations(); |
39 | 39 |
| 40 // Returns the OpenGL target to use for image textures. |
| 41 uint32_t GetImageTextureTarget(gfx::BufferFormat format, |
| 42 gfx::BufferUsage usage); |
| 43 |
40 } // namespace gpu | 44 } // namespace gpu |
41 | 45 |
42 #endif // GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_ | 46 #endif // GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_ |
OLD | NEW |