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

Unified Diff: content/browser/browser_main_loop.cc

Issue 16119003: Move SynchronousCompositor into content/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index a84b87d964b6ff345e3022e9adaa6eee31444535..8e6877c7538a9e546cd9226286c97fefaa1697bd 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -58,6 +58,7 @@
#if defined(OS_ANDROID)
#include "base/android/jni_android.h"
+#include "content/browser/android/in_process/synchronous_compositor_impl.h"
#include "content/browser/android/surface_texture_peer_browser_impl.h"
#include "content/browser/device_orientation/data_fetcher_impl_android.h"
#endif
@@ -423,6 +424,10 @@ void BrowserMainLoop::MainMessageLoopStart() {
#if defined(OS_ANDROID)
SurfaceTexturePeer::InitInstance(new SurfaceTexturePeerBrowserImpl());
DataFetcherImplAndroid::Init(base::android::AttachCurrentThread());
+ if (parsed_command_line_.HasSwitch(
+ switches::kEnableSynchronousRendererCompositor)) {
+ SynchronousCompositorImpl::InitFactory();
+ }
#endif
if (parsed_command_line_.HasSwitch(switches::kMemoryMetrics)) {

Powered by Google App Engine
This is Rietveld 408576698