|
Rewire Android WebView's compositor changed signal.
Make android_webview::BrowserViewRenderer a contents::WebContentsObserver that
listens to RenderViewHostChanged.
WebView used to rely on RWHVA::SetContentViewCore call to swap compositors,
which assumed any RWHVA that is constructed will soon be current. This turned out
to be false when WebView navigates to a page that has an SSL error (in which
case a new RVH will be created for the new domain, but the new RVH won't be
swapped).
To be able to map from RVH to the compositor contained in it, we've introduced a
CompositorID type, that combines the process_id and the routing_id of the RVH.
BUG= 616955
Committed: https://crrev.com/284add6d41ef58f8b2b2574767e6b7e03ebb0923
Cr-Commit-Position: refs/heads/master@{#400499}
Total comments: 23
Total comments: 4
Total comments: 28
Total comments: 2
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+193 lines, -97 lines) |
Patch |
 |
M |
android_webview/BUILD.gn
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
android_webview/android_webview.gyp
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/browser_view_renderer.h
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+17 lines, -8 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/browser_view_renderer.cc
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+43 lines, -46 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/child_frame.h
|
View
|
1
2
3
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/child_frame.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/compositor_frame_consumer.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
A |
android_webview/browser/compositor_id.h
|
View
|
1
2
3
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
 |
A |
android_webview/browser/compositor_id.cc
|
View
|
1
2
3
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/hardware_renderer.h
|
View
|
1
2
3
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/hardware_renderer.cc
|
View
|
1
2
3
4
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/render_thread_manager.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/render_thread_manager.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
android_webview/browser/test/rendering_test.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/aw_contents.h
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
android_webview/native/aw_contents.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
3 chunks |
+25 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/android/synchronous_compositor_host.h
|
View
|
1
2
3
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/android/synchronous_compositor_host.cc
|
View
|
1
2
3
|
3 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_android.cc
|
View
|
1
2
3
|
2 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/android/synchronous_compositor_client.h
|
View
|
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/public/test/test_synchronous_compositor_android.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
Total messages: 53 (20 generated)
|