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

Side by Side 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: comment, check Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/hi_res_timer_manager.h" 10 #include "base/hi_res_timer_manager.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "net/socket/client_socket_factory.h" 51 #include "net/socket/client_socket_factory.h"
52 #include "net/ssl/ssl_config_service.h" 52 #include "net/ssl/ssl_config_service.h"
53 #include "ui/base/clipboard/clipboard.h" 53 #include "ui/base/clipboard/clipboard.h"
54 54
55 #if defined(USE_AURA) 55 #if defined(USE_AURA)
56 #include "content/browser/renderer_host/image_transport_factory.h" 56 #include "content/browser/renderer_host/image_transport_factory.h"
57 #endif 57 #endif
58 58
59 #if defined(OS_ANDROID) 59 #if defined(OS_ANDROID)
60 #include "base/android/jni_android.h" 60 #include "base/android/jni_android.h"
61 #include "content/browser/android/in_process/synchronous_compositor_impl.h"
61 #include "content/browser/android/surface_texture_peer_browser_impl.h" 62 #include "content/browser/android/surface_texture_peer_browser_impl.h"
62 #include "content/browser/device_orientation/data_fetcher_impl_android.h" 63 #include "content/browser/device_orientation/data_fetcher_impl_android.h"
63 #endif 64 #endif
64 65
65 #if defined(OS_WIN) 66 #if defined(OS_WIN)
66 #include <windows.h> 67 #include <windows.h>
67 #include <commctrl.h> 68 #include <commctrl.h>
68 #include <shellapi.h> 69 #include <shellapi.h>
69 70
70 #include "base/win/text_services_message_filter.h" 71 #include "base/win/text_services_message_filter.h"
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 } 417 }
417 } 418 }
418 #endif 419 #endif
419 420
420 if (parts_) 421 if (parts_)
421 parts_->PostMainMessageLoopStart(); 422 parts_->PostMainMessageLoopStart();
422 423
423 #if defined(OS_ANDROID) 424 #if defined(OS_ANDROID)
424 SurfaceTexturePeer::InitInstance(new SurfaceTexturePeerBrowserImpl()); 425 SurfaceTexturePeer::InitInstance(new SurfaceTexturePeerBrowserImpl());
425 DataFetcherImplAndroid::Init(base::android::AttachCurrentThread()); 426 DataFetcherImplAndroid::Init(base::android::AttachCurrentThread());
427 if (parsed_command_line_.HasSwitch(
428 switches::kEnableSynchronousRendererCompositor)) {
429 SynchronousCompositorImpl::InitFactory();
430 }
426 #endif 431 #endif
427 432
428 if (parsed_command_line_.HasSwitch(switches::kMemoryMetrics)) { 433 if (parsed_command_line_.HasSwitch(switches::kMemoryMetrics)) {
429 memory_observer_.reset(new MemoryObserver()); 434 memory_observer_.reset(new MemoryObserver());
430 base::MessageLoop::current()->AddTaskObserver(memory_observer_.get()); 435 base::MessageLoop::current()->AddTaskObserver(memory_observer_.get());
431 } 436 }
432 } 437 }
433 438
434 void BrowserMainLoop::CreateThreads() { 439 void BrowserMainLoop::CreateThreads() {
435 TRACE_EVENT0("startup", "BrowserMainLoop::CreateThreads") 440 TRACE_EVENT0("startup", "BrowserMainLoop::CreateThreads")
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 if (parameters_.ui_task) 873 if (parameters_.ui_task)
869 base::MessageLoopForUI::current()->PostTask(FROM_HERE, 874 base::MessageLoopForUI::current()->PostTask(FROM_HERE,
870 *parameters_.ui_task); 875 *parameters_.ui_task);
871 876
872 base::RunLoop run_loop; 877 base::RunLoop run_loop;
873 run_loop.Run(); 878 run_loop.Run();
874 #endif 879 #endif
875 } 880 }
876 881
877 } // namespace content 882 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/in_process/synchronous_compositor_output_surface.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698