| Index: gpu/command_buffer/client/gles2_implementation.cc
|
| diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
|
| index f60d7772a36e2801ac12d51dd3eab312cc48485e..c02f3a04618775d248230c959f2cef3f66301dbd 100644
|
| --- a/gpu/command_buffer/client/gles2_implementation.cc
|
| +++ b/gpu/command_buffer/client/gles2_implementation.cc
|
| @@ -455,11 +455,13 @@ bool GLES2Implementation::OnMemoryDump(
|
| if (args.level_of_detail != MemoryDumpLevelOfDetail::BACKGROUND) {
|
| dump->AddScalar("free_size", MemoryAllocatorDump::kUnitsBytes,
|
| transfer_buffer_->GetFreeSize());
|
| - auto guid = GetBufferGUIDForTracing(tracing_process_id,
|
| - transfer_buffer_->GetShmId());
|
| - const int kImportance = 2;
|
| - pmd->CreateSharedGlobalAllocatorDump(guid);
|
| - pmd->AddOwnershipEdge(dump->guid(), guid, kImportance);
|
| + if (transfer_buffer_->is_shared()) {
|
| + auto guid = GetBufferGUIDForTracing(tracing_process_id,
|
| + transfer_buffer_->GetShmId());
|
| + const int kImportance = 2;
|
| + pmd->CreateSharedGlobalAllocatorDump(guid);
|
| + pmd->AddOwnershipEdge(dump->guid(), guid, kImportance);
|
| + }
|
| }
|
|
|
| return true;
|
|
|