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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 1867873002: Move unittests in content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 8 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
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 #if defined(USE_AURA) 96 #if defined(USE_AURA)
97 #include "content/public/browser/context_factory.h" 97 #include "content/public/browser/context_factory.h"
98 #include "ui/aura/env.h" 98 #include "ui/aura/env.h"
99 #endif 99 #endif
100 100
101 #if defined(OS_ANDROID) 101 #if defined(OS_ANDROID)
102 #include "base/android/jni_android.h" 102 #include "base/android/jni_android.h"
103 #include "components/tracing/graphics_memory_dump_provider_android.h" 103 #include "components/tracing/graphics_memory_dump_provider_android.h"
104 #include "content/browser/android/browser_startup_controller.h" 104 #include "content/browser/android/browser_startup_controller.h"
105 #include "content/browser/android/browser_surface_texture_manager.h" 105 #include "content/browser/android/browser_surface_texture_manager.h"
106 #include "content/browser/android/in_process_surface_texture_manager.h"
107 #include "content/browser/android/tracing_controller_android.h" 106 #include "content/browser/android/tracing_controller_android.h"
107 #include "content/browser/media/android/browser_media_player_manager.h"
108 #include "content/browser/screen_orientation/screen_orientation_delegate_android .h" 108 #include "content/browser/screen_orientation/screen_orientation_delegate_android .h"
109 #include "content/public/browser/screen_orientation_provider.h" 109 #include "content/public/browser/screen_orientation_provider.h"
110 #include "gpu/ipc/client/android/in_process_surface_texture_manager.h"
110 #include "ui/gl/gl_surface.h" 111 #include "ui/gl/gl_surface.h"
111 #endif 112 #endif
112 113
113 #if defined(OS_MACOSX) 114 #if defined(OS_MACOSX)
114 #include "base/memory/memory_pressure_monitor_mac.h" 115 #include "base/memory/memory_pressure_monitor_mac.h"
115 #include "content/browser/bootstrap_sandbox_manager_mac.h" 116 #include "content/browser/bootstrap_sandbox_manager_mac.h"
116 #include "content/browser/cocoa/system_hotkey_helper_mac.h" 117 #include "content/browser/cocoa/system_hotkey_helper_mac.h"
117 #include "content/browser/mach_broker_mac.h" 118 #include "content/browser/mach_broker_mac.h"
118 #include "content/browser/renderer_host/browser_compositor_view_mac.h" 119 #include "content/browser/renderer_host/browser_compositor_view_mac.h"
119 #include "content/browser/theme_helper_mac.h" 120 #include "content/browser/theme_helper_mac.h"
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 if (is_tracing_startup_for_duration_) { 628 if (is_tracing_startup_for_duration_) {
628 TRACE_EVENT0("startup", "BrowserMainLoop::InitStartupTracingForDuration"); 629 TRACE_EVENT0("startup", "BrowserMainLoop::InitStartupTracingForDuration");
629 InitStartupTracingForDuration(parsed_command_line_); 630 InitStartupTracingForDuration(parsed_command_line_);
630 } 631 }
631 632
632 #if defined(OS_ANDROID) 633 #if defined(OS_ANDROID)
633 { 634 {
634 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:SurfaceTextureManager"); 635 TRACE_EVENT0("startup", "BrowserMainLoop::Subsystem:SurfaceTextureManager");
635 if (parsed_command_line_.HasSwitch(switches::kSingleProcess)) { 636 if (parsed_command_line_.HasSwitch(switches::kSingleProcess)) {
636 gpu::SurfaceTextureManager::SetInstance( 637 gpu::SurfaceTextureManager::SetInstance(
637 InProcessSurfaceTextureManager::GetInstance()); 638 gpu::InProcessSurfaceTextureManager::GetInstance());
638 } else { 639 } else {
639 gpu::SurfaceTextureManager::SetInstance( 640 gpu::SurfaceTextureManager::SetInstance(
640 BrowserSurfaceTextureManager::GetInstance()); 641 BrowserSurfaceTextureManager::GetInstance());
641 } 642 }
643 BrowserMediaPlayerManager::InitSurfaceTexturePeer();
642 } 644 }
643 645
644 if (!parsed_command_line_.HasSwitch( 646 if (!parsed_command_line_.HasSwitch(
645 switches::kDisableScreenOrientationLock)) { 647 switches::kDisableScreenOrientationLock)) {
646 TRACE_EVENT0("startup", 648 TRACE_EVENT0("startup",
647 "BrowserMainLoop::Subsystem:ScreenOrientationProvider"); 649 "BrowserMainLoop::Subsystem:ScreenOrientationProvider");
648 screen_orientation_delegate_.reset( 650 screen_orientation_delegate_.reset(
649 new ScreenOrientationDelegateAndroid()); 651 new ScreenOrientationDelegateAndroid());
650 ScreenOrientationProvider::SetDelegate(screen_orientation_delegate_.get()); 652 ScreenOrientationProvider::SetDelegate(screen_orientation_delegate_.get());
651 } 653 }
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 DCHECK(is_tracing_startup_for_duration_); 1452 DCHECK(is_tracing_startup_for_duration_);
1451 1453
1452 is_tracing_startup_for_duration_ = false; 1454 is_tracing_startup_for_duration_ = false;
1453 TracingController::GetInstance()->StopTracing( 1455 TracingController::GetInstance()->StopTracing(
1454 TracingController::CreateFileSink( 1456 TracingController::CreateFileSink(
1455 startup_trace_file_, 1457 startup_trace_file_,
1456 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); 1458 base::Bind(OnStoppedStartupTracing, startup_trace_file_)));
1457 } 1459 }
1458 1460
1459 } // namespace content 1461 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698