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

Unified Diff: ui/gfx/gpu_memory_buffer.cc

Issue 2819803002: Reorganize GUIDs for GPU memory buffers (Closed)
Patch Set: Address on reviews 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
« no previous file with comments | « ui/gfx/gpu_memory_buffer.h ('k') | ui/gfx/gpu_memory_buffer_tracing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e8eb7d2d52122d81ea92e9e72b364176b012e367 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,10 @@ GpuMemoryBufferHandle CloneHandleForIPC(
return gfx::GpuMemoryBufferHandle();
}
+base::trace_event::MemoryAllocatorDumpGuid GpuMemoryBuffer::GetGUIDForTracing(
+ uint64_t tracing_process_id) const {
+ return gfx::GetGenericSharedGpuMemoryGUIDForTracing(tracing_process_id,
+ GetId());
+}
+
} // namespace gfx
« no previous file with comments | « ui/gfx/gpu_memory_buffer.h ('k') | ui/gfx/gpu_memory_buffer_tracing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698