Index: gpu/ipc/common/gpu_memory_buffer_support.h |
diff --git a/gpu/ipc/common/gpu_memory_buffer_support.h b/gpu/ipc/common/gpu_memory_buffer_support.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6c32f464503102bbf1d5e1d423d0ffc8399e7dee |
--- /dev/null |
+++ b/gpu/ipc/common/gpu_memory_buffer_support.h |
@@ -0,0 +1,25 @@ |
+// 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_ |