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

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: 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 side-by-side diff with in-line comments
Download patch
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..3cf42ffa16887e1a2ad315727b1254bc85e47753 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 OnSetVSyncNotificationEnabled(bool enabled);
void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
void OnUpdateIsDelayed();
void OnInputEventAck(WebKit::WebInputEvent::Type event_type,

Powered by Google App Engine
This is Rietveld 408576698