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

Unified Diff: content/common/view_messages.h

Issue 423773002: Unified BeginFrame scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WIP in mac and android Created 6 years, 4 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/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 44812aaf157c43b0142d6018f948bd3f0e107004..10fe4a57d242c837ffbcceca1ae77376cd50c2ca 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -925,10 +925,6 @@ IPC_MESSAGE_ROUTED3(ViewMsg_UpdateTopControlsState,
IPC_MESSAGE_ROUTED0(ViewMsg_ShowImeIfNeeded)
-// Sent by the browser when the renderer should generate a new frame.
-IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame,
- cc::BeginFrameArgs /* args */)
-
// Sent by the browser when an IME update that requires acknowledgement has been
// processed on the browser side.
IPC_MESSAGE_ROUTED0(ViewMsg_ImeEventAck)
@@ -963,6 +959,12 @@ IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem,
int /* selected index, -1 means no selection */)
#endif
+#if defined(OS_ANDROID) || defined(USE_AURA)
+// Sent by the browser when the renderer should generate a new frame.
+IPC_MESSAGE_ROUTED1(ViewMsg_BeginFrame,
+ cc::BeginFrameArgs /* args */)
+#endif
+
// Sent by the browser as a reply to ViewHostMsg_SwapCompositorFrame.
IPC_MESSAGE_ROUTED2(ViewMsg_SwapCompositorFrameAck,
uint32 /* output_surface_id */,
@@ -1595,6 +1597,14 @@ IPC_MESSAGE_ROUTED0(ViewHostMsg_HideValidationMessage)
IPC_MESSAGE_ROUTED1(ViewHostMsg_MoveValidationMessage,
gfx::Rect /* anchor rectangle in root view coordinate */)
+#if defined(OS_ANDROID) || defined(USE_AURA)
+// Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
+// display events. If |enabled| is true, the BeginFrame message will continue
+// to be be delivered until the notification is disabled.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame,
+ bool /* enabled */)
+#endif
+
#if defined(OS_ANDROID)
// Response to ViewMsg_FindMatchRects.
//
@@ -1630,12 +1640,6 @@ IPC_MESSAGE_CONTROL3(ViewHostMsg_RunWebAudioMediaCodec,
base::FileDescriptor /* pcm_output */,
uint32_t /* data_size*/)
-// Sent by renderer to request a ViewMsg_BeginFrame message for upcoming
-// display events. If |enabled| is true, the BeginFrame message will continue
-// to be be delivered until the notification is disabled.
-IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame,
- bool /* enabled */)
-
// Reply to the ViewMsg_ExtractSmartClipData message.
IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted,
base::string16 /* text */,

Powered by Google App Engine
This is Rietveld 408576698