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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698