DescriptionMake 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
Messages
Total messages: 9 (2 generated)
|