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

Unified Diff: android_webview/lib/main/aw_main_delegate.cc

Issue 287993004: [Android WebView] Implement Ubercomp for Render Thread support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: init tear down factored out separately Created 6 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: android_webview/lib/main/aw_main_delegate.cc
diff --git a/android_webview/lib/main/aw_main_delegate.cc b/android_webview/lib/main/aw_main_delegate.cc
index a71c0a6ed86182f07d234af22c9acb566ce38227..c5f99b73e7004a8d50784d1fadbeb0d692aa5117 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -8,6 +8,7 @@
#include "android_webview/browser/browser_view_renderer.h"
#include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
#include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
+#include "android_webview/common/aw_switches.h"
#include "android_webview/lib/aw_browser_dependency_factory_impl.h"
#include "android_webview/native/aw_geolocation_permission_context.h"
#include "android_webview/native/aw_quota_manager_bridge_impl.h"
@@ -66,6 +67,12 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
// Not yet supported in single-process mode.
cl->AppendSwitch(switches::kDisableSharedWorkers);
+ if (!switches::UbercompEnabled()) {
+ cl->AppendSwitch(switches::kDisableDelegatedRenderer);
+ } else {
+ cl->AppendSwitch(switches::kDisableAccelerated2dCanvas);
+ cl->AppendSwitch(switches::kDisableExperimentalWebGL);
+ }
// File system API not supported (requires some new API; internal bug 6930981)
cl->AppendSwitch(switches::kDisableFileSystem);

Powered by Google App Engine
This is Rietveld 408576698