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

Unified Diff: content/browser/gpu/browser_gpu_memory_buffer_manager.cc

Issue 2915553002: Add BrowserGpuMemoryBufferManager::BufferInfo::shared_memory_guid (Closed)
Patch Set: impl Created 3 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/browser/gpu/browser_gpu_memory_buffer_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/browser_gpu_memory_buffer_manager.cc
diff --git a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
index 099367d7d02725838c305ab11a02e77ec39a7c9d..9263974e8c056b1ace35986001c8de8147127ff8 100644
--- a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
+++ b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
@@ -293,6 +293,10 @@ void BrowserGpuMemoryBufferManager::HandleCreateGpuMemoryBufferOnIO(
BrowserThread::GetTaskRunnerForThread(BrowserThread::IO),
base::Bind(&BrowserGpuMemoryBufferManager::DestroyGpuMemoryBufferOnIO,
base::Unretained(this), new_id, request->client_id)));
+ if (request->result) {
+ buffers.find(new_id)->second.shared_memory_guid =
+ request->result->GetHandle().handle.GetGUID();
+ }
request->event.Signal();
}
@@ -411,6 +415,7 @@ void BrowserGpuMemoryBufferManager::GpuMemoryBufferCreatedOnIO(
// client is removed.
buffer_it->second.type = handle.type;
buffer_it->second.gpu_host_id = gpu_host_id;
+ buffer_it->second.shared_memory_guid = handle.handle.GetGUID();
callback.Run(handle);
}
« no previous file with comments | « content/browser/gpu/browser_gpu_memory_buffer_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698