OSDN Git Service

Reparent the webview_zygote to be a child of the main app_process zygote.
authorRobert Sesek <rsesek@google.com>
Wed, 17 Jan 2018 23:48:18 +0000 (18:48 -0500)
committerRobert Sesek <rsesek@google.com>
Tue, 20 Feb 2018 22:00:41 +0000 (17:00 -0500)
commit602d1323ed1e8937fc6f1602ab95c2cfdb0499d4
tree56085de0273f2e4f6ee97cea3446d54323e3b964
parentf9fd8dfcc080751ee8c92e2e6fc6c4923a2ebc91
Reparent the webview_zygote to be a child of the main app_process zygote.

This uses the new ZygoteProcess.startChildZygote() method to launch the
webview_zygote, rather than having init start it. This will share more
memory between the app_process and the webview_zygote, reducing the
overall system footprint.

Bug: 63749735
Test: m
Test: Launch "Third-party licenses" activity from Settings, and it
      renders correctly via the WebView.
Change-Id: I3e39cd8adb9c099c92ee34640428916d90cb2b8f
cmds/webview_zygote/Android.mk [deleted file]
cmds/webview_zygote/webview_zygote.cpp [deleted file]
cmds/webview_zygote/webview_zygote32.rc [deleted file]
cmds/webview_zygote/webview_zygote64.rc [deleted file]
core/java/android/webkit/WebViewZygote.java
core/java/com/android/internal/os/WebViewZygoteInit.java