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

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

Issue 2572703004: exo: Directly create GpuMemoryBufferImpl when a handle is available. (Closed)
Patch Set: null callback 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 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"
(...skipping 10 matching lines...) Expand all
21 GpuMemoryBufferManager(); 21 GpuMemoryBufferManager();
22 virtual ~GpuMemoryBufferManager(); 22 virtual ~GpuMemoryBufferManager();
23 23
24 // Creates a GpuMemoryBuffer that can be shared with another process. 24 // Creates a GpuMemoryBuffer that can be shared with another process.
25 virtual std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer( 25 virtual std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(
26 const gfx::Size& size, 26 const gfx::Size& size,
27 gfx::BufferFormat format, 27 gfx::BufferFormat format,
28 gfx::BufferUsage usage, 28 gfx::BufferUsage usage,
29 gpu::SurfaceHandle surface_handle) = 0; 29 gpu::SurfaceHandle surface_handle) = 0;
30 30
31 // Creates a GpuMemoryBuffer from existing handle.
32 virtual std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
33 const gfx::GpuMemoryBufferHandle& handle,
34 const gfx::Size& size,
35 gfx::BufferFormat format) = 0;
36
37 // Associates destruction sync point with |buffer|. 31 // Associates destruction sync point with |buffer|.
38 virtual void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, 32 virtual void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
39 const gpu::SyncToken& sync_token) = 0; 33 const gpu::SyncToken& sync_token) = 0;
40 }; 34 };
41 35
42 } // namespace gpu 36 } // namespace gpu
43 37
44 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_MANAGER_H_ 38 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | gpu/ipc/client/gpu_memory_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698