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

Side by Side Diff: content/shell/browser/shell_android.cc

Issue 344703002: Revert of Remove EnableThreadedCompositing from the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/app/shell_main_delegate.cc ('k') | content/shell/common/shell_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/browser/shell.h" 5 #include "content/shell/browser/shell.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "content/public/common/content_switches.h" 14 #include "content/public/common/content_switches.h"
15 #include "content/shell/android/shell_manager.h" 15 #include "content/shell/android/shell_manager.h"
16 #include "jni/Shell_jni.h" 16 #include "jni/Shell_jni.h"
17 17
18 using base::android::AttachCurrentThread; 18 using base::android::AttachCurrentThread;
19 using base::android::ConvertUTF8ToJavaString; 19 using base::android::ConvertUTF8ToJavaString;
20 20
21 namespace content { 21 namespace content {
22 22
23 void Shell::PlatformInitialize(const gfx::Size& default_window_size) { 23 void Shell::PlatformInitialize(const gfx::Size& default_window_size) {
24 CommandLine* command_line = CommandLine::ForCurrentProcess();
25 DCHECK(command_line->HasSwitch(switches::kEnableThreadedCompositing));
24 } 26 }
25 27
26 void Shell::PlatformExit() { 28 void Shell::PlatformExit() {
27 } 29 }
28 30
29 void Shell::PlatformCleanUp() { 31 void Shell::PlatformCleanUp() {
30 JNIEnv* env = AttachCurrentThread(); 32 JNIEnv* env = AttachCurrentThread();
31 if (java_object_.is_null()) 33 if (java_object_.is_null())
32 return; 34 return;
33 Java_Shell_onNativeDestroyed(env, java_object_.obj()); 35 Java_Shell_onNativeDestroyed(env, java_object_.obj());
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return RegisterNativesImpl(env); 104 return RegisterNativesImpl(env);
103 } 105 }
104 106
105 // static 107 // static
106 void CloseShell(JNIEnv* env, jclass clazz, jlong shellPtr) { 108 void CloseShell(JNIEnv* env, jclass clazz, jlong shellPtr) {
107 Shell* shell = reinterpret_cast<Shell*>(shellPtr); 109 Shell* shell = reinterpret_cast<Shell*>(shellPtr);
108 shell->Close(); 110 shell->Close();
109 } 111 }
110 112
111 } // namespace content 113 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/app/shell_main_delegate.cc ('k') | content/shell/common/shell_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698