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

Unified Diff: content/common/view_messages.h

Issue 13068002: Send vsync notification from browser to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename EnableVSyncNotification to SetVSyncNotificationEnabled Created 7 years, 9 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 c87ff495a051340307cda2ef180a4421f39f2cc6..44a785fbc221b45410e56d57d377ce5284f14a7c 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -750,11 +750,22 @@ IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost)
IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
int /* orientation */)
-// Sent by the renderer when the parameters for vsync alignment have changed.
+// Sent by the browser when the parameters for vsync alignment have changed.
IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters,
base::TimeTicks /* timebase */,
base::TimeDelta /* interval */)
+// Sent by renderer to request a ViewMsg_VSync message for upcoming display
+// vsync events. If |enabled| is true, the vsync message will continue to be be
+// delivered until the notification is disabled.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_SetVSyncNotificationEnabled,
jam 2013/03/27 16:13:06 nit: see the order of this file, where ViewMsg are
Sami 2013/03/27 17:38:06 Thanks, I completely missed the grouping here.
+ bool /* enabled */)
+
+// Sent by the browser when the display vsync signal was triggered and the
+// renderer should generate a new frame.
+IPC_MESSAGE_ROUTED1(ViewMsg_DidVSync,
+ base::TimeTicks /* frame_time */)
+
// Set the top-level frame to the provided name.
IPC_MESSAGE_ROUTED1(ViewMsg_SetName,
std::string /* frame_name */)

Powered by Google App Engine
This is Rietveld 408576698