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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 13068002: Send vsync notification from browser to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index e81bc5d33226ef64f8a05145bf8840b26825aec6..0fe6431160fd2db024498605da196f4bbbfb5a1d 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -398,6 +398,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
virtual void UpdateVSyncParameters(base::TimeTicks timebase,
base::TimeDelta interval);
+ // Notifies the RenderWidget that the display vsync signal was triggered and
+ // now is a good time to render a new frame.
+ virtual void SendVSync(base::TimeTicks frame_time);
+
// Called by the view in response to AcceleratedSurfaceBuffersSwapped or
// AcceleratedSurfacePostSubBuffer.
static void AcknowledgeBufferPresent(
@@ -577,6 +581,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
const gfx::Size& size,
int32 gpu_process_host_id);
bool OnSwapCompositorFrame(const IPC::Message& message);
+ void OnEnableVSyncNotification(bool enable);
mkosiba (inactive) 2013/03/26 13:51:48 nit: Enable usually means a transition from disabl
Sami 2013/03/26 17:51:35 Agreed, OnSetVSyncNotificationEnabled reads much b
void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
void OnUpdateIsDelayed();
void OnInputEventAck(WebKit::WebInputEvent::Type event_type,
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698