Index: content/common/android/sync_compositor_messages.h |
diff --git a/content/common/android/sync_compositor_messages.h b/content/common/android/sync_compositor_messages.h |
index 2e9af1a9c768725949ee63e37c298c3291518f9c..d4556dab188f081a117d27e673b2383727a48ad3 100644 |
--- a/content/common/android/sync_compositor_messages.h |
+++ b/content/common/android/sync_compositor_messages.h |
@@ -139,6 +139,8 @@ IPC_STRUCT_TRAITS_BEGIN(content::SyncCompositorCommonRendererParams) |
IPC_STRUCT_TRAITS_END() |
// Messages sent from the browser to the renderer. |
+// Synchronous IPCs are allowed here to the renderer compositor thread. See |
+// design doc https://goo.gl/Tn81FW and crbug.com/526842 for details. |
IPC_SYNC_MESSAGE_ROUTED2_2(SyncCompositorMsg_HandleInputEvent, |
content::SyncCompositorCommonBrowserParams, |
@@ -180,6 +182,13 @@ IPC_SYNC_MESSAGE_ROUTED2_3(SyncCompositorMsg_DemandDrawSw, |
IPC_MESSAGE_ROUTED1(SyncCompositorMsg_UpdateState, |
content::SyncCompositorCommonBrowserParams) |
+// The synchronous version is used to synchronize state from an earlier |
+// asynchronous call only. This should be needed rarely so should prefer the |
+// asynchronous version above in general. |
+IPC_SYNC_MESSAGE_ROUTED1_1(SyncCompositorMsg_SynchronousUpdateState, |
+ content::SyncCompositorCommonBrowserParams, |
+ content::SyncCompositorCommonRendererParams) |
+ |
// ----------------------------------------------------------------------------- |
// Messages sent from the renderer to the browser. |