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)) { |