Speculative fix for Surface strict mode crash.
Don't take ownership fo the local ref returned by ANativeWindow_toSurface; just wrap it in a JavaParamRef to satisfy the interface temporarily. This is a speculative fix for the StrictMode crash; the introduction of this Adopt appears to be the only functional change in the culprit CL, so avoiding it might work; if so we can find a real solution afterward. Bug: 1146071 Change-Id: Ie817bfbfa7dc531b6e4ddacde42ee5c021948451 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2527563 Auto-Submit: Richard Coles <torne@chromium.org> Commit-Queue: Jonathan Backer <backer@chromium.org> Reviewed-by:Jonathan Backer <backer@chromium.org> Cr-Commit-Position: refs/heads/master@{#825797}
Showing
Please register or sign in to comment