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

Issue 1832423004: aw: Ensure functor is called after binding init (Closed)

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

Description

aw: Ensure functor is called after binding init Currently a crash from null bindings in functor can result from this sequence: * Compositor initialized * BVR::OnDrawHardware sets hardware_enabled_, but renderer side has not been intialized so returns a null frame * Detach or destroy webview, which will try to run functor for clean up since hardware_enabled_ is true. The last step will race with GL binding init on gpu thread. If functor runs first, then will result in crashes. The small fix for now is make sure to not set hardware_enabled_ until after receiving a hardware frame from renderer side. This crash is new in IPC-based sync compositing. The old in-process path waits for renderer side to be up before initializing browser side. BUG=595811 Committed: https://crrev.com/a0f215e54b6ab4cf50e67ae7a2450e0327af6f7e Cr-Commit-Position: refs/heads/master@{#383602}

Patch Set 1 #

Patch Set 2 : memory policy #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M android_webview/browser/browser_view_renderer.cc View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 16 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832423004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832423004/1
4 years, 8 months ago (2016-03-28 22:31:49 UTC) #2
boliu
ptal
4 years, 8 months ago (2016-03-28 22:34:12 UTC) #5
hush (inactive)
On 2016/03/28 22:34:12, boliu wrote: > ptal lgtm
4 years, 8 months ago (2016-03-28 22:49:06 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832423004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832423004/20001
4 years, 8 months ago (2016-03-28 22:49:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832423004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832423004/20001
4 years, 8 months ago (2016-03-28 23:12:09 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-03-28 23:23:01 UTC) #14
commit-bot: I haz the power
4 years, 8 months ago (2016-03-28 23:24:37 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a0f215e54b6ab4cf50e67ae7a2450e0327af6f7e
Cr-Commit-Position: refs/heads/master@{#383602}

Powered by Google App Engine
This is Rietveld 408576698