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 Review URL: https://codereview.chromium.org/1138113004 Cr-Commit-Position: refs/heads/master@{#330087}
Showing
Please register or sign in to comment