| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "ui/gfx/gpu_memory_buffer_tracing.h" |
| |
| namespace gfx { |
| |
| base::trace_event::MemoryAllocatorDumpGuid GetGpuMemoryBufferGUIDForTracing( |
| uint64_t tracing_process_id, |
| GpuMemoryBufferId buffer_id) { |
| // TODO(ericrk): Currently this function just wraps |
| // GetGenericSharedMemoryGUIDForTracing, we may want to special case this if |
| // the GPU memory buffer is not backed by shared memory. |
| return gfx::GetGenericSharedMemoryGUIDForTracing(tracing_process_id, |
| buffer_id); |
| } |
| |
| } // namespace gfx |