Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: gpu/ipc/common/gpu_memory_buffer_support.h

Issue 1831513003: Pull gpu service/client shared memory buffer code to GpuMemoryBufferSupport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed ifdef mixup Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698