Bug 1164027 - Run search activity in a separate process; r=margaret
authorJim Chen <nchen@mozilla.com>
Mon, 18 Apr 2016 07:34:06 -0400
changeset 317360 4a9ce80d7a1b61d88e718e9a233435b6f6ad5215
parent 317359 bc5264d6536ed11cc513fd003453e0a91a3f45ca
child 317361 64a0ad4f6ac04a4951c815a948395374700ae2ad
push id9480
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 17:12:58 +0000
treeherdermozilla-aurora@0d6a91c76a9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs1164027
milestone48.0a1
Bug 1164027 - Run search activity in a separate process; r=margaret We suspect running WebView instances in the same process as Gecko could be one cause of excessive GPU memory mappings.
mobile/android/search/manifests/SearchAndroidManifest_activities.xml.in
--- a/mobile/android/search/manifests/SearchAndroidManifest_activities.xml.in
+++ b/mobile/android/search/manifests/SearchAndroidManifest_activities.xml.in
@@ -1,10 +1,11 @@
         <activity
             android:name="@MOZ_ANDROID_SEARCH_INTENT_CLASS@"
+            android:process=":search"
             android:launchMode="singleTop"
             android:taskAffinity="@ANDROID_PACKAGE_NAME@.SEARCH"
             android:icon="@drawable/search_launcher"
             android:label="@string/search_app_name"
             android:configChanges="orientation|screenSize"
             android:theme="@style/AppTheme">
             <intent-filter>
                 <action android:name="android.intent.action.ASSIST"/>
@@ -44,16 +45,17 @@
                 <action android:name="org.mozilla.widget.LAUNCH_NEW_TAB"/>
             </intent-filter>
 
             <meta-data android:name="android.appwidget.provider" android:resource="@xml/search_widget_info" />
         </receiver>
 
         <activity
             android:name="org.mozilla.search.SearchPreferenceActivity"
+            android:process=":search"
             android:logo="@drawable/search_launcher"
             android:label="@string/search_pref_title"
             android:parentActivityName="@MOZ_ANDROID_SEARCH_INTENT_CLASS@"
             android:theme="@style/SettingsTheme" >
             <meta-data
                 android:name="android.support.PARENT_ACTIVITY"
                 android:value="@MOZ_ANDROID_SEARCH_INTENT_CLASS@"/>
         </activity>