Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |