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

Unified Diff: content/shell/shell_android.cc

Issue 10823051: ContentShell rendering support on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/shell/shell_android.cc
diff --git a/content/shell/shell_android.cc b/content/shell/shell_android.cc
index 242651cec7c26daab522a956928d68725216af67..cc718d6abca931fbefeb4ab8527ea7058317853b 100644
--- a/content/shell/shell_android.cc
+++ b/content/shell/shell_android.cc
@@ -8,8 +8,10 @@
#include "base/android/scoped_java_ref.h"
#include "base/android/jni_string.h"
+#include "base/command_line.h"
#include "base/logging.h"
#include "base/string_piece.h"
+#include "content/public/common/content_switches.h"
#include "content/shell/android/shell_manager.h"
#include "jni/Shell_jni.h"
@@ -23,6 +25,11 @@ base::StringPiece Shell::PlatformResourceProvider(int key) {
}
void Shell::PlatformInitialize() {
+ // TODO(sievers): This should just assert the right flags are
aelias_OOO_until_Jul13 2012/07/27 19:58:24 These will be added by Yusuf's gesture patch http:
no sievers 2012/07/31 01:28:44 Cool, I turned it into a dcheck() then. On 2012/0
+ // already set.
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ command_line->AppendSwitch(switches::kForceCompositingMode);
+ command_line->AppendSwitch(switches::kEnableThreadedCompositing);
}
void Shell::PlatformCleanUp() {

Powered by Google App Engine
This is Rietveld 408576698