| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef GPU_IPC_COMMON_GPU_MEMORY_BUFFER_SUPPORT_H_ |
| #define GPU_IPC_COMMON_GPU_MEMORY_BUFFER_SUPPORT_H_ |
| |
| #include "gpu/gpu_export.h" |
| #include "ui/gfx/buffer_types.h" |
| #include "ui/gfx/gpu_memory_buffer.h" |
| |
| namespace gpu { |
| |
| // Returns the native GPU memory buffer factory type. Returns EMPTY_BUFFER |
| // type if native buffers are not supported. |
| GPU_EXPORT gfx::GpuMemoryBufferType GetNativeGpuMemoryBufferType(); |
| |
| // Returns whether the provided buffer format is supported. |
| GPU_EXPORT bool IsNativeGpuMemoryBufferConfigurationSupported( |
| gfx::BufferFormat format, |
| gfx::BufferUsage usage); |
| |
| } // namespace gpu |
| |
| #endif // GPU_IPC_COMMON_GPU_MEMORY_BUFFER_SUPPORT_H_ |