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

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: Fix Ozone builds 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
« no previous file with comments | « gpu/ipc/common/BUILD.gn ('k') | gpu/ipc/common/gpu_memory_buffer_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 class GPU_EXPORT GpuMemoryBufferSupport {
15 public:
16 // Returns the native GPU memory buffer factory type. Returns EMPTY_BUFFER
17 // type if native buffers are not supported.
18 static gfx::GpuMemoryBufferType GetNativeType();
19
20 // Returns whether the provided Buffer format is support.
21 static bool IsSupported(gfx::BufferFormat format, gfx::BufferUsage usage);
22
23 private:
24 // We shouldn't be instantiating this class.
reveman 2016/03/23 20:00:43 why bother with a class at all then? remove the cl
Fady Samuel 2016/03/23 20:26:07 Done.
25 GpuMemoryBufferSupport();
26 ~GpuMemoryBufferSupport();
27
28 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferSupport);
29 };
30
31 } // namespace gpu
32
33 #endif // GPU_IPC_COMMON_GPU_MEMORY_BUFFER_SUPPORT_H_
OLDNEW
« no previous file with comments | « gpu/ipc/common/BUILD.gn ('k') | gpu/ipc/common/gpu_memory_buffer_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698