Chromium Code Reviews| Index: ui/gfx/gpu_memory_buffer.cc |
| diff --git a/ui/gfx/gpu_memory_buffer.cc b/ui/gfx/gpu_memory_buffer.cc |
| index 44fcd31fd87513868f5d135d32393f7f92fc545d..8d9a20ac4115cd14e00cd5bde31b177635c29afc 100644 |
| --- a/ui/gfx/gpu_memory_buffer.cc |
| +++ b/ui/gfx/gpu_memory_buffer.cc |
| @@ -4,17 +4,16 @@ |
| #include "ui/gfx/gpu_memory_buffer.h" |
| -#include "base/format_macros.h" |
| -#include "base/strings/stringprintf.h" |
| - |
| namespace gfx { |
| base::trace_event::MemoryAllocatorDumpGuid GetGpuMemoryBufferGUIDForTracing( |
| uint64 tracing_process_id, |
| GpuMemoryBufferId buffer_id) { |
| - return base::trace_event::MemoryAllocatorDumpGuid( |
| - base::StringPrintf("gpumemorybuffer-x-process/%" PRIx64 "/%d", |
| - tracing_process_id, buffer_id)); |
| + // TODO(ericrk): Currently this function just wraps |
| + // GetGenericSahredMemoryGUIDForTracing, we may want to special case this if |
|
danakj
2015/08/12 23:49:02
Shared
ericrk
2015/08/13 00:13:56
Done.
|
| + // the GPU memory buffer is not backed by shared memory. |
| + return base::GetGenericSharedMemoryGUIDForTracing(tracing_process_id, |
| + buffer_id); |
| } |
| GpuMemoryBufferHandle::GpuMemoryBufferHandle() |