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

Issue 263903008: aw: Fix detach and destroy interaction (Closed)

Created:
6 years, 7 months ago by boliu
Modified:
6 years, 7 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

aw: Fix detach and destroy interaction Previously we cannot destroy native side before detach because we would have leaked hardware resources. This is no longer the case ever since requestDrawGL takes a waitForCompletion parameter. Now we can synchronously call nativeOnDetachedFromWindow from inside destroy to clean up hardware resources, and then actually destroy native side immediately. Then also found that AwSettings will crash after destroying native since it does not always check that the native pointer is not 0. Fixed these and added a test. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268034

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix comment #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -36 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 5 chunks +9 lines, -29 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwSettings.java View 8 chunks +21 lines, -7 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
boliu
sgurun for review hush/mnaganov for fyi
6 years, 7 months ago (2014-05-02 23:10:05 UTC) #1
hush (inactive)
https://codereview.chromium.org/263903008/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/263903008/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode638 android_webview/java/src/org/chromium/android_webview/AwContents.java:638: * Deletes the native counterpart of this object. Normally ...
6 years, 7 months ago (2014-05-02 23:42:27 UTC) #2
boliu
https://codereview.chromium.org/263903008/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/263903008/diff/1/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode638 android_webview/java/src/org/chromium/android_webview/AwContents.java:638: * Deletes the native counterpart of this object. Normally ...
6 years, 7 months ago (2014-05-02 23:45:31 UTC) #3
sgurun-gerrit only
https://codereview.chromium.org/263903008/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java (right): https://codereview.chromium.org/263903008/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java#newcode155 android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java:155: assertEquals(newBlockNetworkLoads, awSettings.getBlockNetworkLoads()); I think you also want to test ...
6 years, 7 months ago (2014-05-02 23:54:34 UTC) #4
sgurun-gerrit only
lgtm https://codereview.chromium.org/263903008/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java (right): https://codereview.chromium.org/263903008/diff/1/android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java#newcode155 android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java:155: assertEquals(newBlockNetworkLoads, awSettings.getBlockNetworkLoads()); himm scratch this. they are statics ...
6 years, 7 months ago (2014-05-03 00:20:25 UTC) #5
boliu
The CQ bit was checked by boliu@chromium.org
6 years, 7 months ago (2014-05-03 01:01:00 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/263903008/20001
6 years, 7 months ago (2014-05-03 01:01:25 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-03 01:01:29 UTC) #8
commit-bot: I haz the power
Failed to apply patch for android_webview/java/src/org/chromium/android_webview/AwContents.java: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-03 01:01:30 UTC) #9
boliu
The CQ bit was checked by boliu@chromium.org
6 years, 7 months ago (2014-05-03 01:29:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/263903008/40001
6 years, 7 months ago (2014-05-03 01:30:56 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-03 03:42:32 UTC) #12
Message was sent while issue was closed.
Change committed as 268034

Powered by Google App Engine
This is Rietveld 408576698