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

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: fix ContentShellTestApk 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
« no previous file with comments | « content/browser/android/browser_startup_controller.h ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7b594524be431c5aec4d7ca951ec110adf1f55dc 100644
--- a/content/browser/android/browser_startup_controller.cc
+++ b/content/browser/android/browser_startup_controller.cc
@@ -22,6 +22,12 @@ void BrowserStartupComplete(int result) {
Java_BrowserStartupController_browserStartupComplete(env, result);
}
+bool ShouldStartGpuProcessOnBrowserStartup() {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ return Java_BrowserStartupController_shouldStartGpuProcessOnBrowserStartup(
+ env);
+}
+
bool RegisterBrowserStartupController(JNIEnv* env) {
return RegisterNativesImpl(env);
}
« no previous file with comments | « content/browser/android/browser_startup_controller.h ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698