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

Side by Side Diff: gpu/command_buffer/client/gpu_memory_buffer_manager.h

Issue 2800693002: {Browser}GpuMemoryBufferManager: add supported native attrib queries
Patch Set: {Browser}GpuMemoryBufferManager: add supported native attrib queries Created 3 years, 8 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "gpu/gpu_export.h" 10 #include "gpu/gpu_export.h"
11 #include "gpu/ipc/common/gpu_memory_buffer_support.h"
11 #include "gpu/ipc/common/surface_handle.h" 12 #include "gpu/ipc/common/surface_handle.h"
12 #include "ui/gfx/geometry/size.h" 13 #include "ui/gfx/geometry/size.h"
13 #include "ui/gfx/gpu_memory_buffer.h" 14 #include "ui/gfx/gpu_memory_buffer.h"
14 15
15 namespace gpu { 16 namespace gpu {
16 17
17 struct SyncToken; 18 struct SyncToken;
18 19
19 class GPU_EXPORT GpuMemoryBufferManager { 20 class GPU_EXPORT GpuMemoryBufferManager {
20 public: 21 public:
21 GpuMemoryBufferManager(); 22 GpuMemoryBufferManager();
22 virtual ~GpuMemoryBufferManager(); 23 virtual ~GpuMemoryBufferManager();
23 24
24 // Creates a GpuMemoryBuffer that can be shared with another process. 25 // Creates a GpuMemoryBuffer that can be shared with another process.
25 virtual std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer( 26 virtual std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(
26 const gfx::Size& size, 27 const gfx::Size& size,
27 gfx::BufferFormat format, 28 gfx::BufferFormat format,
28 gfx::BufferUsage usage, 29 gfx::BufferUsage usage,
29 gpu::SurfaceHandle surface_handle) = 0; 30 gpu::SurfaceHandle surface_handle) = 0;
30 31
31 // Associates destruction sync point with |buffer|. 32 // Associates destruction sync point with |buffer|.
32 virtual void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, 33 virtual void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
33 const gpu::SyncToken& sync_token) = 0; 34 const gpu::SyncToken& sync_token) = 0;
35
36 // Returns the supported GpuMemoryBufferAttrib pairs.
37 virtual gfx::GpuMemoryBufferAttribVector GetGpuMemoryBufferAttribs();
34 }; 38 };
35 39
36 } // namespace gpu 40 } // namespace gpu
37 41
38 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_MANAGER_H_ 42 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.cc ('k') | gpu/command_buffer/client/gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698