Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: ui/gfx/gpu_memory_buffer.cc

Issue 2819803002: Reorganize GUIDs for GPU memory buffers (Closed)
Patch Set: Move GetGUIDForTracing from handle to GpuMemoryBuffer Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/gfx/gpu_memory_buffer.cc
diff --git a/ui/gfx/gpu_memory_buffer.cc b/ui/gfx/gpu_memory_buffer.cc
index a7655d48ab7c108fea991d60105aec8c79a06e24..bbf54de426e23c4a45b916f4083fa305fb7f8335 100644
--- a/ui/gfx/gpu_memory_buffer.cc
+++ b/ui/gfx/gpu_memory_buffer.cc
@@ -4,6 +4,8 @@
#include "ui/gfx/gpu_memory_buffer.h"
+#include "ui/gfx/generic_shared_memory_id.h"
+
namespace gfx {
GpuMemoryBufferHandle::GpuMemoryBufferHandle()
@@ -48,4 +50,11 @@ GpuMemoryBufferHandle CloneHandleForIPC(
return gfx::GpuMemoryBufferHandle();
}
+base::trace_event::MemoryAllocatorDumpGuid GpuMemoryBuffer::GetGUIDForTracing(
+ uint64_t tracing_process_id) const {
+ auto handle = GetHandle();
reveman 2017/04/18 13:44:52 nit: please use GetId() instead. The handle is mea
hajimehoshi 2017/04/19 06:15:12 Done.
+ return gfx::GetGenericSharedGpuMemoryGUIDForTracing(tracing_process_id,
+ handle.id);
+}
+
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698