| Index: ui/gl/gl_image_io_surface.mm
|
| diff --git a/ui/gl/gl_image_io_surface.mm b/ui/gl/gl_image_io_surface.mm
|
| index 7b24aeaa67e119af7636709e6fc5ac92b09708fb..7d6564b2dd28c38f06f24efc324c86e56261ee4a 100644
|
| --- a/ui/gl/gl_image_io_surface.mm
|
| +++ b/ui/gl/gl_image_io_surface.mm
|
| @@ -361,6 +361,14 @@ GLenum ConvertRequestedInternalFormat(GLenum internalformat) {
|
| base::trace_event::MemoryAllocatorDump::kUnitsBytes,
|
| static_cast<uint64_t>(size_bytes));
|
|
|
| + // The process tracing id is to identify the GpuMemoryBuffer client that
|
| + // created the allocation. For CVPixelBufferRefs, there is no corresponding
|
| + // GpuMemoryBuffer, so use an invalid process id.
|
| + if (cv_pixel_buffer_) {
|
| + process_tracing_id =
|
| + base::trace_event::MemoryDumpManager::kInvalidTracingProcessId;
|
| + }
|
| +
|
| auto guid =
|
| GetGenericSharedMemoryGUIDForTracing(process_tracing_id, io_surface_id_);
|
| pmd->CreateSharedGlobalAllocatorDump(guid);
|
|
|