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

Unified Diff: content/common/child_process_messages.h

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: address review feedback Created 6 years, 2 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: content/common/child_process_messages.h
diff --git a/content/common/child_process_messages.h b/content/common/child_process_messages.h
index 18c3cc4c2efe0c9e3cac05a46a4d23af8fa27faa..e16affb4058176db4e356cf23ee99c9af868aa6d 100644
--- a/content/common/child_process_messages.h
+++ b/content/common/child_process_messages.h
@@ -87,6 +87,12 @@ IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle)
#endif
IPC_STRUCT_TRAITS_END()
+IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Format,
+ gfx::GpuMemoryBuffer::FORMAT_LAST)
+
+IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Usage,
+ gfx::GpuMemoryBuffer::USAGE_LAST)
+
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
@@ -197,8 +203,8 @@ IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats,
IPC_SYNC_MESSAGE_CONTROL4_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer,
uint32 /* width */,
uint32 /* height */,
- uint32 /* internalformat */,
- uint32 /* usage */,
+ gfx::GpuMemoryBuffer::Format,
+ gfx::GpuMemoryBuffer::Usage,
gfx::GpuMemoryBufferHandle)
// Informs the browser that the child deleted a gpu memory buffer.

Powered by Google App Engine
This is Rietveld 408576698