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

Unified Diff: gpu/command_buffer/client/gpu_memory_buffer_manager.h

Issue 1975023002: Add GpuMemoryBuffer CreateFromClientId interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just the interface Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gpu_memory_buffer_manager.h
diff --git a/gpu/command_buffer/client/gpu_memory_buffer_manager.h b/gpu/command_buffer/client/gpu_memory_buffer_manager.h
index 1f56123d03afa51e2752e163cd38470ef4bd7d0f..351600228c0954eba69874ff4270ad2e0afa59ab 100644
--- a/gpu/command_buffer/client/gpu_memory_buffer_manager.h
+++ b/gpu/command_buffer/client/gpu_memory_buffer_manager.h
@@ -33,6 +33,12 @@ class GPU_EXPORT GpuMemoryBufferManager {
const gfx::Size& size,
gfx::BufferFormat format) = 0;
+ // Creates a new GpuMemoryBuffer instance of a client's buffer.
+ virtual std::unique_ptr<gfx::GpuMemoryBuffer>
+ CreateGpuMemoryBufferFromClientId(
+ int client_id,
+ const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) = 0;
+
// Returns a GpuMemoryBuffer instance given a ClientBuffer. Returns NULL on
// failure.
virtual gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
« no previous file with comments | « content/child/child_gpu_memory_buffer_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698