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

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
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..b3fb671b1e28184b92e6bedeca5771596c33b095 100644
--- a/ui/gfx/gpu_memory_buffer.cc
+++ b/ui/gfx/gpu_memory_buffer.cc
@@ -4,6 +4,9 @@
#include "ui/gfx/gpu_memory_buffer.h"
+#include "ui/gfx/generic_shared_memory_id.h"
+#include "ui/gfx/gpu_memory_buffer_tracing.h"
+
namespace gfx {
GpuMemoryBufferHandle::GpuMemoryBufferHandle()
@@ -48,4 +51,11 @@ GpuMemoryBufferHandle CloneHandleForIPC(
return gfx::GpuMemoryBufferHandle();
}
+base::trace_event::MemoryAllocatorDumpGuid
+GpuMemoryBufferHandle::GetGUIDForTracing(uint64_t tracing_process_id) {
+ if (type == gfx::SHARED_MEMORY_BUFFER)
reveman 2017/04/17 13:21:06 not a fan of this special case but should go away
ericrk 2017/04/17 18:10:15 This special case was added to allow all shared me
hajimehoshi 2017/04/18 08:21:58 Done. On 2017/04/17 18:10:15, ericrk wrote:
+ return gfx::GetSharedMemoryGUIDForTracing(tracing_process_id, id);
+ return gfx::GetGenericSharedGpuMemoryGUIDForTracing(tracing_process_id, id);
+}
+
} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698