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

Issue 1882623002: aw: Quick workaround for functor detach crash/hang (Closed)

Created:
4 years, 8 months ago by boliu
Modified:
4 years, 8 months ago
Reviewers:
Tobias Sargeant
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

aw: Quick workaround for functor detach crash/hang Two quick fixes: * On N where the functor detach callback is supported use it instead along with destroy to destroy AwGLFunctor * In RenderThreadManager::DrawGL, make sure that HardwareRenderer is not re-created after window detach but before functor detach/destroy. Do this by checking if there is a frame for HardwareRenderer to consume. Fixes above should ensure there are no crashes for using a regular webview, but are still incomplete. These cases are still wrong and should be fixed by the complete functor lifetime refactor: * Full screen video, which uses a different view (may crash) * The pop up window flow still potentially uses the old functor (existing bug) * Functor playback after window detach will not draw anything, which may cause flicker. BUG=597167 Committed: https://crrev.com/ee6d581cf7f60fc79ed8b7df472fa4e58790ec22 Cr-Commit-Position: refs/heads/master@{#386831}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fixes #

Patch Set 3 : more rtm clean up #

Patch Set 4 : pesky boolean conditions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -9 lines) Patch
M android_webview/browser/render_thread_manager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/render_thread_manager.cc View 1 2 3 3 chunks +13 lines, -6 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 6 chunks +25 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
boliu
see if it makes sense to you, I haven't done anything to ensure view doesn't ...
4 years, 8 months ago (2016-04-12 18:17:12 UTC) #2
boliu
On 2016/04/12 18:17:12, boliu wrote: > see if it makes sense to you, I haven't ...
4 years, 8 months ago (2016-04-12 18:20:23 UTC) #3
Tobias Sargeant
https://codereview.chromium.org/1882623002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1882623002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1145 android_webview/java/src/org/chromium/android_webview/AwContents.java:1145: if (!mFunctorDetachedCallbackPending) { || !mSupportsFunctorDetachedCallback
4 years, 8 months ago (2016-04-12 18:36:14 UTC) #4
boliu
https://codereview.chromium.org/1882623002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/1882623002/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1145 android_webview/java/src/org/chromium/android_webview/AwContents.java:1145: if (!mFunctorDetachedCallbackPending) { On 2016/04/12 18:36:14, Tobias Sargeant wrote: ...
4 years, 8 months ago (2016-04-12 20:24:15 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882623002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882623002/60001
4 years, 8 months ago (2016-04-12 20:24:54 UTC) #7
Tobias Sargeant
On 2016/04/12 20:24:54, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years, 8 months ago (2016-04-12 20:38:12 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-12 21:20:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1882623002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1882623002/60001
4 years, 8 months ago (2016-04-12 22:07:34 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-12 22:13:29 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-04-12 22:15:40 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ee6d581cf7f60fc79ed8b7df472fa4e58790ec22
Cr-Commit-Position: refs/heads/master@{#386831}

Powered by Google App Engine
This is Rietveld 408576698