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

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

Issue 1376003002: Make rendering timeouts work even if paint data received early (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cursor
Patch Set: Rebase that maybe works this time Created 5 years, 3 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 17e3e82bff430ca29fc5826587cb998ecfb9a050..c03935a82fa3e5a1264efd131836ce7eb92c8a3f 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -267,6 +267,10 @@ class CONTENT_EXPORT RenderWidgetHostImpl
// graphics.
void StopNewContentRenderingTimeout();
+ // Notification that a new compositor frame has been generated following
+ // a page load. This stops |new_content_rendering_timeout_|.
Charlie Reis 2015/09/30 20:36:19 nit: "...or prevents the timer from running if it
kenrb 2015/09/30 21:25:02 Done.
+ void OnFirstPaintAfterLoad();
Charlie Reis 2015/09/30 20:36:19 Are we guaranteed to always get both this and the
kenrb 2015/09/30 21:25:02 It shouldn't be possible to get a ViewHostMsg_DidF
+
// Forwards the given message to the renderer. These are called by the view
// when it has received a message.
void ForwardGestureEventWithLatencyInfo(
@@ -810,6 +814,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl
scoped_ptr<TimeoutMonitor> hang_monitor_timeout_;
scoped_ptr<TimeoutMonitor> new_content_rendering_timeout_;
+ bool received_paint_after_load_;
Charlie Reis 2015/09/30 20:36:19 Let's say when we expect this to be true, since it
kenrb 2015/09/30 21:25:02 Done.
#if defined(OS_WIN)
std::list<HWND> dummy_windows_for_activation_;

Powered by Google App Engine
This is Rietveld 408576698