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

Side by Side Diff: gpu/ipc/host/gpu_memory_buffer_support.h

Issue 2585653003: gpu: Move buffer format to target texture map into gpu host. (Closed)
Patch Set: . Created 4 years 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_ 5 #ifndef GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_
6 #define GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_ 6 #define GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_
7 7
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/hash.h" 9 #include "base/hash.h"
10 #include "ui/gfx/buffer_types.h" 10 #include "ui/gfx/buffer_types.h"
(...skipping 19 matching lines...) Expand all
30 30
31 } // namespace BASE_HASH_NAMESPACE 31 } // namespace BASE_HASH_NAMESPACE
32 32
33 namespace gpu { 33 namespace gpu {
34 34
35 bool AreNativeGpuMemoryBuffersEnabled(); 35 bool AreNativeGpuMemoryBuffersEnabled();
36 36
37 // Returns the set of supported configurations. 37 // Returns the set of supported configurations.
38 GpuMemoryBufferConfigurationSet GetNativeGpuMemoryBufferConfigurations(); 38 GpuMemoryBufferConfigurationSet GetNativeGpuMemoryBufferConfigurations();
39 39
40 // Returns the OpenGL target to use for image textures.
41 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
42 gfx::BufferUsage usage);
43
40 } // namespace gpu 44 } // namespace gpu
41 45
42 #endif // GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_ 46 #endif // GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | gpu/ipc/host/gpu_memory_buffer_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698