|
Clear renderer compositor trees if new page does not render in 4 seconds
Since r348902, there has been a timer in the browser process that
clears a displayed page after a navigation, if the new page does not
produce a compositor frame within 4 seconds of the navigation
committing. However, if the user flipped to another tab and then back
again after the timer fires, the previous content would reappear
because the WasShown message would cause a new compositor frame to be
sent, still showing the unloaded content.
This adds a browser-to-renderer IPC message that is sent when the timer
fires, and causes the renderer to reset the trees in its
LayerTreeHostImpl, preventing the unloaded content from being
re-displayed.
BUG= 672847
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+46 lines, -3 lines) |
Patch |
|
M |
cc/test/fake_proxy.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
cc/tiles/tile_manager_perftest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_impl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/trees/layer_tree_host_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
cc/trees/proxy.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
cc/trees/proxy_impl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
cc/trees/proxy_impl.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
cc/trees/proxy_main.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
cc/trees/proxy_main.cc
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
cc/trees/single_thread_proxy.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_impl.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/common/view_messages.h
|
View
|
1
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/gpu/render_widget_compositor.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/gpu/render_widget_compositor.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_widget.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_widget.cc
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
Total messages: 10 (10 generated)
|