Chromium Code Reviews| 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 2ecbba20480ba09e7725214639e86ade5af87500..76d6ac19e2c0e2165591e2b7ca710e6eefdc3d58 100644 |
| --- a/content/browser/renderer_host/render_widget_host_impl.h |
| +++ b/content/browser/renderer_host/render_widget_host_impl.h |
| @@ -339,12 +339,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
| // |next_source_id| to be discarded. |
| void StartNewContentRenderingTimeout(uint32_t next_source_id); |
| - // Notification that a new compositor frame has been generated following |
| - // a page load. This stops |new_content_rendering_timeout_|, or prevents |
| - // the timer from running if the load commit message hasn't been received |
| - // yet. |
| - void OnFirstPaintAfterLoad(); |
| - |
| // Forwards the keyboard event with optional commands to the renderer. If |
| // |key_event| is not forwarded for any reason, then |commands| are ignored. |
| void ForwardKeyboardEventWithCommands( |
| @@ -848,18 +842,6 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
| std::unique_ptr<TimeoutMonitor> new_content_rendering_timeout_; |
| - // This boolean is true if RenderWidgetHostImpl receives a compositor frame |
| - // from a newly loaded page before StartNewContentRenderingTimeout() is |
| - // called. This means that a paint for the new load has completed before |
| - // the browser received a DidCommitProvisionalLoad message. In that case |
| - // |new_content_rendering_timeout_| is not needed. The renderer will send |
| - // both the FirstPaintAfterLoad and DidCommitProvisionalLoad messages after |
| - // any new page navigation, it doesn't matter which is received first, and |
| - // it should not be possible to interleave other navigations in between |
| - // receipt of those messages (unless FirstPaintAfterLoad is prevented from |
| - // being sent, in which case the timer should fire). |
| - bool received_paint_after_load_; |
| - |
| RenderWidgetHostLatencyTracker latency_tracker_; |
| int next_browser_snapshot_id_; |
| @@ -910,6 +892,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, |
| cc::LocalSurfaceId last_local_surface_id_; |
| gfx::Size last_frame_size_; |
| float last_device_scale_factor_; |
| + uint32_t last_received_content_source_id_ = 0; |
|
Charlie Reis
2017/03/24 16:52:01
Can you add a comment here about it, or point to w
Saman Sami
2017/03/24 18:04:50
Done.
|
| base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |