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

Issue 1900323002: aw: Do not destroy functor in destroy (Closed)

Created:
4 years, 8 months ago by boliu
Modified:
4 years, 8 months ago
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: 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 Committed: https://crrev.com/9e1b6d426ecb1302df0aca23fa3cc96bdc8d83bd Cr-Commit-Position: refs/heads/master@{#388394}

Patch Set 1 #

Patch Set 2 : add missing part #

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 1 chunk +2 lines, -3 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwGLFunctor.java View 1 4 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 19 (8 generated)
boliu
description should be self explanatory..hopefully
4 years, 8 months ago (2016-04-19 22:57:31 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900323002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900323002/1
4 years, 8 months ago (2016-04-19 22:58:02 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-19 23:36:29 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/1900323002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900323002/20001
4 years, 8 months ago (2016-04-20 00:36:20 UTC) #8
hush (inactive)
lgtm
4 years, 8 months ago (2016-04-20 00:54:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900323002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900323002/20001
4 years, 8 months ago (2016-04-20 00:56:49 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-20 01:15:57 UTC) #14
boliu
On 2016/04/20 01:15:57, commit-bot: I haz the power wrote: > Committed patchset #2 (id:20001) Yeah, ...
4 years, 8 months ago (2016-04-20 01:16:48 UTC) #15
hush (inactive)
On 2016/04/20 01:16:48, boliu wrote: > On 2016/04/20 01:15:57, commit-bot: I haz the power wrote: ...
4 years, 8 months ago (2016-04-20 18:34:26 UTC) #16
boliu
On 2016/04/20 18:34:26, hush wrote: > On 2016/04/20 01:16:48, boliu wrote: > > On 2016/04/20 ...
4 years, 8 months ago (2016-04-20 18:36:55 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:19:37 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9e1b6d426ecb1302df0aca23fa3cc96bdc8d83bd
Cr-Commit-Position: refs/heads/master@{#388394}

Powered by Google App Engine
This is Rietveld 408576698