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

Side by Side 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: Made the RWHV API Android-only. Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 // locked or not. 753 // locked or not.
754 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK, 754 IPC_MESSAGE_ROUTED1(ViewMsg_LockMouse_ACK,
755 bool /* succeeded */) 755 bool /* succeeded */)
756 // Tells the render side that the mouse has been unlocked. 756 // Tells the render side that the mouse has been unlocked.
757 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost) 757 IPC_MESSAGE_ROUTED0(ViewMsg_MouseLockLost)
758 758
759 // Screen was rotated. Dispatched to the onorientationchange javascript API. 759 // Screen was rotated. Dispatched to the onorientationchange javascript API.
760 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent, 760 IPC_MESSAGE_ROUTED1(ViewMsg_OrientationChangeEvent,
761 int /* orientation */) 761 int /* orientation */)
762 762
763 // Sent by the renderer when the parameters for vsync alignment have changed. 763 // Sent by the browser when the parameters for vsync alignment have changed.
764 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters, 764 IPC_MESSAGE_ROUTED2(ViewMsg_UpdateVSyncParameters,
765 base::TimeTicks /* timebase */, 765 base::TimeTicks /* timebase */,
766 base::TimeDelta /* interval */) 766 base::TimeDelta /* interval */)
767 767
768 // Sent by the browser when the display vsync signal was triggered and the
769 // renderer should generate a new frame.
770 IPC_MESSAGE_ROUTED1(ViewMsg_DidVSync,
771 base::TimeTicks /* frame_time */)
772
768 // Set the top-level frame to the provided name. 773 // Set the top-level frame to the provided name.
769 IPC_MESSAGE_ROUTED1(ViewMsg_SetName, 774 IPC_MESSAGE_ROUTED1(ViewMsg_SetName,
770 std::string /* frame_name */) 775 std::string /* frame_name */)
771 776
772 // Sent to the RenderView when a new tab is swapped into an existing 777 // Sent to the RenderView when a new tab is swapped into an existing
773 // tab and the histories need to be merged. The existing tab has a history of 778 // tab and the histories need to be merged. The existing tab has a history of
774 // |merged_history_length| which precedes the history of the new tab. All 779 // |merged_history_length| which precedes the history of the new tab. All
775 // page_ids >= |minimum_page_id| in the new tab are appended to the history. 780 // page_ids >= |minimum_page_id| in the new tab are appended to the history.
776 // 781 //
777 // For example, suppose the history of page_ids in the new tab's RenderView 782 // For example, suppose the history of page_ids in the new tab's RenderView
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
2118 IPC_MESSAGE_ROUTED5(ViewHostMsg_CompositorSurfaceBuffersSwapped, 2123 IPC_MESSAGE_ROUTED5(ViewHostMsg_CompositorSurfaceBuffersSwapped,
2119 int32 /* surface id */, 2124 int32 /* surface id */,
2120 uint64 /* surface_handle */, 2125 uint64 /* surface_handle */,
2121 int32 /* route_id */, 2126 int32 /* route_id */,
2122 gfx::Size /* size */, 2127 gfx::Size /* size */,
2123 int32 /* gpu_process_host_id */) 2128 int32 /* gpu_process_host_id */)
2124 2129
2125 IPC_MESSAGE_ROUTED1(ViewHostMsg_SwapCompositorFrame, 2130 IPC_MESSAGE_ROUTED1(ViewHostMsg_SwapCompositorFrame,
2126 cc::CompositorFrame /* frame */) 2131 cc::CompositorFrame /* frame */)
2127 2132
2133 // Sent by renderer to request a ViewMsg_VSync message for upcoming display
2134 // vsync events. If |enabled| is true, the vsync message will continue to be be
2135 // delivered until the notification is disabled.
2136 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetVSyncNotificationEnabled,
2137 bool /* enabled */)
2138
2128 // Opens a file asynchronously. The response returns a file descriptor 2139 // Opens a file asynchronously. The response returns a file descriptor
2129 // and an error code from base/platform_file.h. 2140 // and an error code from base/platform_file.h.
2130 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenFile, 2141 IPC_MESSAGE_ROUTED3(ViewHostMsg_AsyncOpenFile,
2131 base::FilePath /* file path */, 2142 base::FilePath /* file path */,
2132 int /* flags */, 2143 int /* flags */,
2133 int /* message_id */) 2144 int /* message_id */)
2134 2145
2135 //--------------------------------------------------------------------------- 2146 //---------------------------------------------------------------------------
2136 // Request for cryptographic operation messages: 2147 // Request for cryptographic operation messages:
2137 // These are messages from the renderer to the browser to perform a 2148 // These are messages from the renderer to the browser to perform a
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2400 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2411 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2401 // for details. 2412 // for details.
2402 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2413 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2403 LOGFONT /* font_data */, 2414 LOGFONT /* font_data */,
2404 string16 /* characters */) 2415 string16 /* characters */)
2405 #endif 2416 #endif
2406 2417
2407 // Adding a new message? Stick to the sort order above: first platform 2418 // Adding a new message? Stick to the sort order above: first platform
2408 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform 2419 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform
2409 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. 2420 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698