summaryrefslogtreecommitdiffstats
path: root/chrome/common/gpu_messages_internal.h
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 20:36:07 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 20:36:07 +0000
commit69cd41f227734e0d4bbb11aa1f78add9733ba30d (patch)
treeb0cf52a5e16a05188c4854314c1e38e44b3c64b3 /chrome/common/gpu_messages_internal.h
parent1ec686313f0230d1de89cd8e6c48198ccf409260 (diff)
downloadchromium_src-69cd41f227734e0d4bbb11aa1f78add9733ba30d.zip
chromium_src-69cd41f227734e0d4bbb11aa1f78add9733ba30d.tar.gz
chromium_src-69cd41f227734e0d4bbb11aa1f78add9733ba30d.tar.bz2
SwapBuffers notification is sent from GPU process to renderer process.
Once the notification has been received, it is safe to bind an offscreen "front buffer" in its parent context. Binding before the notification is received might result in getting the previous frame. TEST=try, WebGL BUG=none Review URL: http://codereview.chromium.org/3083017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55278 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gpu_messages_internal.h')
-rw-r--r--chrome/common/gpu_messages_internal.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/common/gpu_messages_internal.h b/chrome/common/gpu_messages_internal.h
index ac669aa..b17135b 100644
--- a/chrome/common/gpu_messages_internal.h
+++ b/chrome/common/gpu_messages_internal.h
@@ -159,8 +159,8 @@ IPC_END_MESSAGES(GpuChannel)
//------------------------------------------------------------------------------
// GPU Command Buffer Messages
-// These are messages from a renderer process to the GPU process relating to a
-// single OpenGL context.
+// These are messages between a renderer process to the GPU process relating to
+// a single OpenGL context.
IPC_BEGIN_MESSAGES(GpuCommandBuffer)
// Initialize a command buffer with the given number of command entries.
// Returns the shared memory handle for the command buffer mapped to the
@@ -195,6 +195,9 @@ IPC_BEGIN_MESSAGES(GpuCommandBuffer)
IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UpdateState,
gpu::CommandBuffer::State /* state */)
+ // Indicates that a SwapBuffers call has been issued.
+ IPC_MESSAGE_ROUTED0(GpuCommandBufferMsg_SwapBuffers)
+
// Create a shared memory transfer buffer. Returns an id that can be used to
// identify the transfer buffer from a comment.
IPC_SYNC_MESSAGE_ROUTED1_1(GpuCommandBufferMsg_CreateTransferBuffer,