OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef GPU_IPC_COMMON_GPU_MEMORY_BUFFER_SUPPORT_H_ |
| 6 #define GPU_IPC_COMMON_GPU_MEMORY_BUFFER_SUPPORT_H_ |
| 7 |
| 8 #include "gpu/gpu_export.h" |
| 9 #include "ui/gfx/buffer_types.h" |
| 10 #include "ui/gfx/gpu_memory_buffer.h" |
| 11 |
| 12 namespace gpu { |
| 13 |
| 14 // Returns the native GPU memory buffer factory type. Returns EMPTY_BUFFER |
| 15 // type if native buffers are not supported. |
| 16 GPU_EXPORT gfx::GpuMemoryBufferType GetNativeGpuMemoryBufferType(); |
| 17 |
| 18 // Returns whether the provided buffer format is supported. |
| 19 GPU_EXPORT bool IsNativeGpuMemoryBufferConfigurationSupported( |
| 20 gfx::BufferFormat format, |
| 21 gfx::BufferUsage usage); |
| 22 |
| 23 } // namespace gpu |
| 24 |
| 25 #endif // GPU_IPC_COMMON_GPU_MEMORY_BUFFER_SUPPORT_H_ |
OLD | NEW |