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

Issue 1903673003: [Merge M50] aw: Do not destroy functor in destroy (Closed)

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

Description

[Merge M50] aw: Do not destroy functor in destroy Functor has to be kept alive as long as the functor release callback is still pending. This CL adds back the CleanupReference in AwGLFunctor and remove the call from AwContents.DestroyRunnable. Native AwContents is still destroyed before AwGLFunctor by ensuring that AwContents.DestroyRunnable holds a reference to th AwGLFunctor referent, which is only the AwGLFunctor.DestroyRunnable instead of AwGLFunctor itself. This avoids strong references to the container View from any DestroyRunnable. Also remove destroying glue DrawGLFunctor from destroy. Now DrawGLFunctor is destroyed only by its CleanupReference, and DrawGLFucntor is kept alive by the (transitively) functor release callback. Luckily it doesn't have any destruction ordering requirements with other native objects. BUG=597167 Review URL: https://codereview.chromium.org/1900323002 Cr-Commit-Position: refs/heads/master@{#388394} (cherry picked from commit 9e1b6d426ecb1302df0aca23fa3cc96bdc8d83bd) Committed: https://chromium.googlesource.com/chromium/src/+/64b8b7f87e81a57c5127f4d2de1684c6d5c1dde1

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -21 lines) Patch
M android_webview/glue/java/src/com/android/webview/chromium/DrawGLFunctor.java View 2 chunks +1 line, -13 lines 0 comments Download
M android_webview/glue/java/src/com/android/webview/chromium/WebViewChromium.java View 1 chunk +0 lines, -4 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 chunk +2 lines, -3 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwGLFunctor.java View 4 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 2 (1 generated)
boliu
4 years, 8 months ago (2016-04-20 02:08:07 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
64b8b7f87e81a57c5127f4d2de1684c6d5c1dde1.

Powered by Google App Engine
This is Rietveld 408576698