| 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 3cb728df94b7a628b0e390ad7b480b5abee799f2..3dbea500e96d7479e6510872f1be16f1a3948699 100644
|
| --- a/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
|
| +++ b/content/browser/gpu/browser_gpu_memory_buffer_manager.cc
|
| @@ -172,9 +172,14 @@ bool BrowserGpuMemoryBufferManager::OnMemoryDump(
|
| uint64_t client_tracing_process_id =
|
| ClientIdToTracingProcessId(client_id);
|
|
|
| - base::trace_event::MemoryAllocatorDumpGuid shared_buffer_guid =
|
| - gfx::GetGpuMemoryBufferGUIDForTracing(client_tracing_process_id,
|
| - buffer_id);
|
| + base::trace_event::MemoryAllocatorDumpGuid shared_buffer_guid;
|
| + if (buffer.second.type == gfx::SHARED_MEMORY_BUFFER) {
|
| + shared_buffer_guid = gfx::GetSharedMemoryGUIDForTracing(
|
| + client_tracing_process_id, buffer_id);
|
| + } else {
|
| + shared_buffer_guid = gfx::GetGenericSharedGpuMemoryGUIDForTracing(
|
| + client_tracing_process_id, buffer_id);
|
| + }
|
| pmd->CreateSharedGlobalAllocatorDump(shared_buffer_guid);
|
| pmd->AddOwnershipEdge(dump->guid(), shared_buffer_guid);
|
| }
|
|
|