| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1100 #if !defined(OS_IOS) | 1100 #if !defined(OS_IOS) |
| 1101 indexed_db_thread_.reset(new base::Thread("IndexedDB")); | 1101 indexed_db_thread_.reset(new base::Thread("IndexedDB")); |
| 1102 indexed_db_thread_->Start(); | 1102 indexed_db_thread_->Start(); |
| 1103 #endif | 1103 #endif |
| 1104 | 1104 |
| 1105 #if !defined(OS_IOS) | 1105 #if !defined(OS_IOS) |
| 1106 HistogramSynchronizer::GetInstance(); | 1106 HistogramSynchronizer::GetInstance(); |
| 1107 | 1107 |
| 1108 #if defined(OS_ANDROID) | 1108 #if defined(OS_ANDROID) |
| 1109 // Up the priority of the UI thread. | 1109 // Up the priority of the UI thread. |
| 1110 base::PlatformThread::SetThreadPriority(base::PlatformThread::CurrentHandle(), | 1110 base::PlatformThread::SetCurrentThreadPriority(base::ThreadPriority::DISPLAY); |
| 1111 base::ThreadPriority::DISPLAY); | |
| 1112 #endif | 1111 #endif |
| 1113 | 1112 |
| 1114 if (!UsingInProcessGpu()) { | 1113 if (!UsingInProcessGpu()) { |
| 1115 GpuDataManagerImpl::GetInstance()->Initialize(); | 1114 GpuDataManagerImpl::GetInstance()->Initialize(); |
| 1116 } | 1115 } |
| 1117 | 1116 |
| 1118 bool always_uses_gpu = true; | 1117 bool always_uses_gpu = true; |
| 1119 bool established_gpu_channel = false; | 1118 bool established_gpu_channel = false; |
| 1120 #if defined(OS_ANDROID) | 1119 #if defined(OS_ANDROID) |
| 1121 // TODO(crbug.com/439322): This should be set to |true|. | 1120 // TODO(crbug.com/439322): This should be set to |true|. |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1349 DCHECK(is_tracing_startup_); | 1348 DCHECK(is_tracing_startup_); |
| 1350 | 1349 |
| 1351 is_tracing_startup_ = false; | 1350 is_tracing_startup_ = false; |
| 1352 TracingController::GetInstance()->DisableRecording( | 1351 TracingController::GetInstance()->DisableRecording( |
| 1353 TracingController::CreateFileSink( | 1352 TracingController::CreateFileSink( |
| 1354 startup_trace_file_, | 1353 startup_trace_file_, |
| 1355 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); | 1354 base::Bind(OnStoppedStartupTracing, startup_trace_file_))); |
| 1356 } | 1355 } |
| 1357 | 1356 |
| 1358 } // namespace content | 1357 } // namespace content |
| OLD | NEW |