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

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

Issue 14600002: HW draw workarounds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove hack in r199444 Created 7 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 | « no previous file | cc/output/geometry_binding.h » ('j') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fae9f35fd0cff6808787833d68f7f22ed7998d3d..2985e3bdce3ff065eb4e36a5b02939f0b4fce98d 100644
--- a/android_webview/lib/main/aw_main_delegate.cc
+++ b/android_webview/lib/main/aw_main_delegate.cc
@@ -18,6 +18,7 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_restrictions.h"
+#include "cc/base/switches.h"
#include "content/public/browser/browser_main_runner.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_switches.h"
@@ -56,17 +57,12 @@ bool AwMainDelegate::BasicStartupComplete(int* exit_code) {
CommandLine* cl = CommandLine::ForCurrentProcess();
- // Temporarily disable merged thread mode until proper hardware init is done.
- // Currently hardware draw with incomplete init is making invalid GL calls
- // that is crashing in graphics driver on Nexus 7.
- if (!cl->HasSwitch("merge-ui-and-compositor-threads"))
- cl->AppendSwitch(switches::kNoMergeUIAndRendererCompositorThreads);
-
if (UIAndRendererCompositorThreadsNotMerged()) {
cl->AppendSwitch(switches::kEnableWebViewSynchronousAPIs);
} else {
// Set the command line to enable synchronous API compatibility.
cl->AppendSwitch(switches::kEnableSynchronousRendererCompositor);
+ cl->AppendSwitch(switches::kEnableVsyncNotification);
}
return false;
}
« no previous file with comments | « no previous file | cc/output/geometry_binding.h » ('j') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698