summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 21:23:11 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-02 21:23:11 +0000
commitba65b1f642d37bf33ed99c66498110007d249c65 (patch)
tree08baa793c615ec0622e3e3191339ffb47c193434 /chrome/common
parent857bff35929a3af15166bd3e7f885e1d7113c050 (diff)
downloadchromium_src-ba65b1f642d37bf33ed99c66498110007d249c65.zip
chromium_src-ba65b1f642d37bf33ed99c66498110007d249c65.tar.gz
chromium_src-ba65b1f642d37bf33ed99c66498110007d249c65.tar.bz2
Laying down the groundwork for GPU video layers.
This gets --enable-video-layering working when using the GPU backing store. No actual visuals yet, just IPC message passing and a lot of NOTIMPLEMENTED messages. BUG=33329 TEST=try it out and see if you get lots of NOTIMPLEMENTED messages corresponding with video playback Review URL: http://codereview.chromium.org/661344 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/gpu_messages_internal.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/chrome/common/gpu_messages_internal.h b/chrome/common/gpu_messages_internal.h
index 76f264f..0581e4c 100644
--- a/chrome/common/gpu_messages_internal.h
+++ b/chrome/common/gpu_messages_internal.h
@@ -21,7 +21,12 @@ IPC_BEGIN_MESSAGES(Gpu)
// Creates a new backing store.
IPC_MESSAGE_ROUTED2(GpuMsg_NewBackingStore,
- int32, /* backing_store_id */
+ int32, /* backing_store_routing_id */
+ gfx::Size /* size */)
+
+ // Creates a new video layer.
+ IPC_MESSAGE_ROUTED2(GpuMsg_NewVideoLayer,
+ int32, /* video_layer_routing_id */
gfx::Size /* size */)
// Updates the backing store with the given bitmap. The GPU process will send
@@ -45,6 +50,14 @@ IPC_BEGIN_MESSAGES(Gpu)
// over the top.
IPC_MESSAGE_ROUTED0(GpuMsg_WindowPainted)
+ // Updates the video layer with the given YUV data. The GPU process will send
+ // back a GpuHostMsg_PaintToVideoLayer_ACK after the paint is complete to
+ // let the caller know the TransportDIB can be freed or reused.
+ IPC_MESSAGE_ROUTED3(GpuMsg_PaintToVideoLayer,
+ base::ProcessId, /* process */
+ TransportDIB::Id, /* bitmap */
+ gfx::Rect) /* bitmap_rect */
+
IPC_END_MESSAGES(Gpu)
//------------------------------------------------------------------------------
@@ -57,8 +70,10 @@ IPC_BEGIN_MESSAGES(GpuHost)
IPC_MESSAGE_ROUTED1(GpuHostMsg_CreatedRenderWidgetHostView,
gfx::NativeViewId)
- // Send in response to GpuMsg_PaintToBackingStore, see that for more.
+ // Sent in response to GpuMsg_PaintToBackingStore, see that for more.
IPC_MESSAGE_ROUTED0(GpuHostMsg_PaintToBackingStore_ACK)
-IPC_END_MESSAGES(GpuHost)
+ // Sent in response to GpuMsg_PaintToVideoLayer, see that for more.
+ IPC_MESSAGE_ROUTED0(GpuHostMsg_PaintToVideoLayer_ACK)
+IPC_END_MESSAGES(GpuHost)