OLD | NEW |
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 <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "content/browser/device_sensors/device_sensor_service.h" | 53 #include "content/browser/device_sensors/device_sensor_service.h" |
54 #include "content/browser/dom_storage/dom_storage_area.h" | 54 #include "content/browser/dom_storage/dom_storage_area.h" |
55 #include "content/browser/download/download_resource_handler.h" | 55 #include "content/browser/download/download_resource_handler.h" |
56 #include "content/browser/download/save_file_manager.h" | 56 #include "content/browser/download/save_file_manager.h" |
57 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" | 57 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
58 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 58 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
59 #include "content/browser/gpu/compositor_util.h" | 59 #include "content/browser/gpu/compositor_util.h" |
60 #include "content/browser/gpu/gpu_data_manager_impl.h" | 60 #include "content/browser/gpu/gpu_data_manager_impl.h" |
61 #include "content/browser/gpu/gpu_process_host.h" | 61 #include "content/browser/gpu/gpu_process_host.h" |
62 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 62 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
| 63 #include "content/browser/gpu/shader_disk_cache.h" |
63 #include "content/browser/histogram_synchronizer.h" | 64 #include "content/browser/histogram_synchronizer.h" |
64 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 65 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
65 #include "content/browser/loader_delegate_impl.h" | 66 #include "content/browser/loader_delegate_impl.h" |
66 #include "content/browser/media/media_internals.h" | 67 #include "content/browser/media/media_internals.h" |
67 #include "content/browser/memory/memory_coordinator.h" | 68 #include "content/browser/memory/memory_coordinator.h" |
68 #include "content/browser/net/browser_online_state_observer.h" | 69 #include "content/browser/net/browser_online_state_observer.h" |
69 #include "content/browser/renderer_host/media/media_stream_manager.h" | 70 #include "content/browser/renderer_host/media/media_stream_manager.h" |
70 #include "content/browser/renderer_host/render_process_host_impl.h" | 71 #include "content/browser/renderer_host/render_process_host_impl.h" |
71 #include "content/browser/service_manager/service_manager_context.h" | 72 #include "content/browser/service_manager/service_manager_context.h" |
72 #include "content/browser/speech/speech_recognition_manager_impl.h" | 73 #include "content/browser/speech/speech_recognition_manager_impl.h" |
(...skipping 10 matching lines...) Expand all Loading... |
83 #include "content/public/browser/render_process_host.h" | 84 #include "content/public/browser/render_process_host.h" |
84 #include "content/public/browser/tracing_controller.h" | 85 #include "content/public/browser/tracing_controller.h" |
85 #include "content/public/common/content_client.h" | 86 #include "content/public/common/content_client.h" |
86 #include "content/public/common/content_features.h" | 87 #include "content/public/common/content_features.h" |
87 #include "content/public/common/content_switches.h" | 88 #include "content/public/common/content_switches.h" |
88 #include "content/public/common/main_function_params.h" | 89 #include "content/public/common/main_function_params.h" |
89 #include "content/public/common/result_codes.h" | 90 #include "content/public/common/result_codes.h" |
90 #include "device/battery/battery_status_service.h" | 91 #include "device/battery/battery_status_service.h" |
91 #include "device/gamepad/gamepad_service.h" | 92 #include "device/gamepad/gamepad_service.h" |
92 #include "device/time_zone_monitor/time_zone_monitor.h" | 93 #include "device/time_zone_monitor/time_zone_monitor.h" |
93 #include "gpu/ipc/host/shader_disk_cache.h" | |
94 #include "media/base/media.h" | 94 #include "media/base/media.h" |
95 #include "media/base/user_input_monitor.h" | 95 #include "media/base/user_input_monitor.h" |
96 #include "media/midi/midi_manager.h" | 96 #include "media/midi/midi_manager.h" |
97 #include "mojo/edk/embedder/embedder.h" | 97 #include "mojo/edk/embedder/embedder.h" |
98 #include "mojo/edk/embedder/scoped_ipc_support.h" | 98 #include "mojo/edk/embedder/scoped_ipc_support.h" |
99 #include "net/base/network_change_notifier.h" | 99 #include "net/base/network_change_notifier.h" |
100 #include "net/socket/client_socket_factory.h" | 100 #include "net/socket/client_socket_factory.h" |
101 #include "net/ssl/ssl_config_service.h" | 101 #include "net/ssl/ssl_config_service.h" |
102 #include "ppapi/features/features.h" | 102 #include "ppapi/features/features.h" |
103 #include "services/service_manager/runner/common/client_util.h" | 103 #include "services/service_manager/runner/common/client_util.h" |
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1335 #if defined(ENABLE_VULKAN) | 1335 #if defined(ENABLE_VULKAN) |
1336 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 1336 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
1337 switches::kEnableVulkan)) { | 1337 switches::kEnableVulkan)) { |
1338 gpu::InitializeVulkan(); | 1338 gpu::InitializeVulkan(); |
1339 } | 1339 } |
1340 #endif | 1340 #endif |
1341 | 1341 |
1342 // Initialize the GPU shader cache. This needs to be initialized before | 1342 // Initialize the GPU shader cache. This needs to be initialized before |
1343 // BrowserGpuChannelHostFactory below, since that depends on an initialized | 1343 // BrowserGpuChannelHostFactory below, since that depends on an initialized |
1344 // ShaderCacheFactory. | 1344 // ShaderCacheFactory. |
1345 gpu::ShaderCacheFactory::InitInstance( | 1345 ShaderCacheFactory::InitInstance( |
1346 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO), | 1346 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO), |
1347 BrowserThread::GetTaskRunnerForThread(BrowserThread::CACHE)); | 1347 BrowserThread::GetTaskRunnerForThread(BrowserThread::CACHE)); |
1348 | 1348 |
1349 bool always_uses_gpu = true; | 1349 bool always_uses_gpu = true; |
1350 bool established_gpu_channel = false; | 1350 bool established_gpu_channel = false; |
1351 #if defined(OS_ANDROID) | 1351 #if defined(OS_ANDROID) |
1352 // TODO(crbug.com/439322): This should be set to |true|. | 1352 // TODO(crbug.com/439322): This should be set to |true|. |
1353 established_gpu_channel = false; | 1353 established_gpu_channel = false; |
1354 always_uses_gpu = ShouldStartGpuProcessOnBrowserStartup(); | 1354 always_uses_gpu = ShouldStartGpuProcessOnBrowserStartup(); |
1355 BrowserGpuChannelHostFactory::Initialize(established_gpu_channel); | 1355 BrowserGpuChannelHostFactory::Initialize(established_gpu_channel); |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1701 if (!audio_manager_) { | 1701 if (!audio_manager_) { |
1702 audio_thread_ = base::MakeUnique<AudioDeviceThread>(); | 1702 audio_thread_ = base::MakeUnique<AudioDeviceThread>(); |
1703 audio_manager_ = media::AudioManager::Create( | 1703 audio_manager_ = media::AudioManager::Create( |
1704 audio_thread_->GetTaskRunner(), audio_thread_->worker_task_runner(), | 1704 audio_thread_->GetTaskRunner(), audio_thread_->worker_task_runner(), |
1705 MediaInternals::GetInstance()); | 1705 MediaInternals::GetInstance()); |
1706 } | 1706 } |
1707 CHECK(audio_manager_); | 1707 CHECK(audio_manager_); |
1708 } | 1708 } |
1709 | 1709 |
1710 } // namespace content | 1710 } // namespace content |
OLD | NEW |