Index: content/common/gpu/gpu_messages.h |
diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h |
index 124815b57eb483d7219e01ac92c9bd9d772bd833..c72e1a8438ca3eda7aed588561c60a7e79c70cf3 100644 |
--- a/content/common/gpu/gpu_messages.h |
+++ b/content/common/gpu/gpu_messages.h |
@@ -27,6 +27,7 @@ |
#include "media/video/video_decode_accelerator.h" |
#include "media/video/video_encode_accelerator.h" |
#include "ui/events/latency_info.h" |
+#include "ui/gfx/gpu_memory_buffer.h" |
#include "ui/gfx/native_widget_types.h" |
#include "ui/gfx/size.h" |
#include "ui/gl/gpu_preference.h" |
@@ -225,6 +226,13 @@ IPC_ENUM_TRAITS(media::VideoFrame::Format) |
IPC_ENUM_TRAITS(media::VideoEncodeAccelerator::Error) |
+IPC_ENUM_TRAITS(gfx::GpuMemoryBufferType) |
+ |
+IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) |
+ IPC_STRUCT_TRAITS_MEMBER(type) |
+ IPC_STRUCT_TRAITS_MEMBER(handle) |
+IPC_STRUCT_TRAITS_END() |
+ |
//------------------------------------------------------------------------------ |
// GPU Messages |
// These are messages from the browser to the GPU process. |
@@ -637,6 +645,19 @@ IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, |
uint32 /* query */, |
uint32 /* signal_id */) |
+// Register an existing gpu memory buffer. Returns an id that can be |
+// used to identify the gpu memory buffer from a command buffer. |
piman
2013/10/21 21:57:00
nit: this doesn't return an id. fix doc?
reveman
2013/10/22 16:26:11
Done. Fixed the description of GpuCommandBufferMsg
|
+IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_RegisterGpuMemoryBuffer, |
+ int32 /* id */, |
+ gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */, |
+ uint32 /* width */, |
+ uint32 /* height */, |
+ uint32 /* internalformat */) |
+ |
+// Destroy a previously created gpu memory buffer. |
+IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyGpuMemoryBuffer, |
+ int32 /* id */) |
+ |
//------------------------------------------------------------------------------ |
// Accelerated Video Decoder Messages |
// These messages are sent from Renderer process to GPU process. |