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

Unified Diff: ui/gfx/gpu_memory_buffer.h

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/generic_shared_memory_id.cc ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gpu_memory_buffer.h
diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h
index df0112db5ca1386360080e9121ca80544fe02212..6d23c84ddc76074fc8bd5f13af1460e6b3c70531 100644
--- a/ui/gfx/gpu_memory_buffer.h
+++ b/ui/gfx/gpu_memory_buffer.h
@@ -9,6 +9,7 @@
#include <stdint.h>
#include "base/memory/shared_memory.h"
+#include "base/trace_event/memory_allocator_dump_guid.h"
#include "build/build_config.h"
#include "ui/gfx/buffer_types.h"
#include "ui/gfx/generic_shared_memory_id.h"
@@ -97,6 +98,10 @@ class GFX_EXPORT GpuMemoryBuffer {
// Type-checking downcast routine.
virtual ClientBuffer AsClientBuffer() = 0;
+
+ // Returns the GUID for tracing.
+ virtual base::trace_event::MemoryAllocatorDumpGuid GetGUIDForTracing(
+ uint64_t tracing_process_id) const;
};
// Returns an instance of |handle| which can be sent over IPC. This duplicates
« no previous file with comments | « ui/gfx/generic_shared_memory_id.cc ('k') | ui/gfx/gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698