| Index: gpu/command_buffer/client/cmd_buffer_helper.cc
|
| diff --git a/gpu/command_buffer/client/cmd_buffer_helper.cc b/gpu/command_buffer/client/cmd_buffer_helper.cc
|
| index 7021fa399f4ccf7f887667ab73589d5753206b43..faab3c867b32f449e845f42b3ecc6145108f7b04 100644
|
| --- a/gpu/command_buffer/client/cmd_buffer_helper.cc
|
| +++ b/gpu/command_buffer/client/cmd_buffer_helper.cc
|
| @@ -377,10 +377,12 @@ bool CommandBufferHelper::OnMemoryDump(
|
| dump->AddScalar(
|
| "free_size", MemoryAllocatorDump::kUnitsBytes,
|
| GetTotalFreeEntriesNoWaiting() * sizeof(CommandBufferEntry));
|
| - auto guid = GetBufferGUIDForTracing(tracing_process_id, ring_buffer_id_);
|
| - const int kImportance = 2;
|
| - pmd->CreateSharedGlobalAllocatorDump(guid);
|
| - pmd->AddOwnershipEdge(dump->guid(), guid, kImportance);
|
| + if (ring_buffer_->backing()->is_shared()) {
|
| + auto guid = GetBufferGUIDForTracing(tracing_process_id, ring_buffer_id_);
|
| + const int kImportance = 2;
|
| + pmd->CreateSharedGlobalAllocatorDump(guid);
|
| + pmd->AddOwnershipEdge(dump->guid(), guid, kImportance);
|
| + }
|
| }
|
|
|
| return true;
|
|
|