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

Issue 1138113004: Make ActivityWindowAndroid per-activity (Closed)

Created:
5 years, 7 months ago by boliu
Modified:
5 years, 7 months ago
Reviewers:
Torne
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

Make ActivityWindowAndroid per-activity This is to solve the general perf problem of per-webview ActivityWindowAndroid when there are a lot of webviews in an activity. It is kept in a WeakHashMap, and ActivityWindowAndroid only weakly holds the Activity, to ensure Activity can still be gc-ed. ActivityWindowAndroid.destroy is called by CleanupReference. Also make WindowAndroid global and leaking. This is ok since it only uses the Application. BUG=487487 Committed: https://crrev.com/4c75e385acc397da59d6b47c04d116e4b3dce1eb Cr-Commit-Position: refs/heads/master@{#330087}

Patch Set 1 #

Patch Set 2 : suppress findbugs #

Patch Set 3 : CleanupReference #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -16 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 7 chunks +63 lines, -16 lines 2 comments Download

Messages

Total messages: 9 (2 generated)
boliu
work in process I guess Best I came up with today. Maybe you can think ...
5 years, 7 months ago (2015-05-15 03:30:41 UTC) #2
boliu
On 2015/05/15 03:30:41, boliu wrote: > work in process I guess > > Best I ...
5 years, 7 months ago (2015-05-15 03:41:08 UTC) #3
Torne
Generally LGTM, but one question below. also nit: looks like the commit message needs updating, ...
5 years, 7 months ago (2015-05-15 12:48:13 UTC) #4
boliu
https://codereview.chromium.org/1138113004/diff/40001/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/1138113004/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode876 android_webview/java/src/org/chromium/android_webview/AwContents.java:876: private static WeakHashMap<Activity, WindowAndroidWrapper> sActivityWindowMap; On 2015/05/15 12:48:13, Torne ...
5 years, 7 months ago (2015-05-15 13:34:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1138113004/40001
5 years, 7 months ago (2015-05-15 13:38:35 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-15 13:41:51 UTC) #8
commit-bot: I haz the power
5 years, 7 months ago (2015-05-15 13:42:41 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4c75e385acc397da59d6b47c04d116e4b3dce1eb
Cr-Commit-Position: refs/heads/master@{#330087}

Powered by Google App Engine
This is Rietveld 408576698