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

Unified Diff: content/browser/android/browser_startup_controller.cc

Issue 1936353002: Add a flag to not start GPU process on browser startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change willStartGpuProcess to shouldStartGpuProcess Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/android/browser_startup_controller.cc
diff --git a/content/browser/android/browser_startup_controller.cc b/content/browser/android/browser_startup_controller.cc
index 124b519046f1f9a2416f10fa95a2742a80fcd033..69cecfd55794c16302d5c2a8b1cab9e6b4f3a60e 100644
--- a/content/browser/android/browser_startup_controller.cc
+++ b/content/browser/android/browser_startup_controller.cc
@@ -22,6 +22,11 @@ void BrowserStartupComplete(int result) {
Java_BrowserStartupController_browserStartupComplete(env, result);
}
+bool StartGpuProcessOnBrowserStartup() {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ return Java_BrowserStartupController_startGpuProcessOnBrowserStartup(env);
+}
+
bool RegisterBrowserStartupController(JNIEnv* env) {
return RegisterNativesImpl(env);
}

Powered by Google App Engine
This is Rietveld 408576698