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 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 factory = BrowserGpuChannelHostFactory::instance(); | 1374 factory = BrowserGpuChannelHostFactory::instance(); |
1375 } | 1375 } |
1376 DCHECK(factory); | 1376 DCHECK(factory); |
1377 ImageTransportFactory::Initialize(); | 1377 ImageTransportFactory::Initialize(); |
1378 ImageTransportFactory::GetInstance()->SetGpuChannelEstablishFactory(factory); | 1378 ImageTransportFactory::GetInstance()->SetGpuChannelEstablishFactory(factory); |
1379 #if defined(USE_AURA) | 1379 #if defined(USE_AURA) |
1380 bool use_mus_in_renderer = base::CommandLine::ForCurrentProcess()->HasSwitch( | 1380 bool use_mus_in_renderer = base::CommandLine::ForCurrentProcess()->HasSwitch( |
1381 switches::kUseMusInRenderer); | 1381 switches::kUseMusInRenderer); |
1382 if (aura::Env::GetInstance() && !use_mus_in_renderer) { | 1382 if (aura::Env::GetInstance() && !use_mus_in_renderer) { |
1383 aura::Env::GetInstance()->set_context_factory(GetContextFactory()); | 1383 aura::Env::GetInstance()->set_context_factory(GetContextFactory()); |
| 1384 aura::Env::GetInstance()->set_context_factory_private( |
| 1385 GetContextFactoryPrivate()); |
1384 } | 1386 } |
1385 #endif // defined(USE_AURA) | 1387 #endif // defined(USE_AURA) |
1386 #endif // defined(OS_ANDROID) | 1388 #endif // defined(OS_ANDROID) |
1387 | 1389 |
1388 // Enable the GpuMemoryBuffer dump provider with IO thread affinity. Note that | 1390 // Enable the GpuMemoryBuffer dump provider with IO thread affinity. Note that |
1389 // unregistration happens on the IO thread (See | 1391 // unregistration happens on the IO thread (See |
1390 // BrowserProcessSubThread::IOThreadPreCleanUp). | 1392 // BrowserProcessSubThread::IOThreadPreCleanUp). |
1391 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( | 1393 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( |
1392 BrowserGpuMemoryBufferManager::current(), "BrowserGpuMemoryBufferManager", | 1394 BrowserGpuMemoryBufferManager::current(), "BrowserGpuMemoryBufferManager", |
1393 io_thread_->task_runner()); | 1395 io_thread_->task_runner()); |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1705 if (!audio_manager_) { | 1707 if (!audio_manager_) { |
1706 audio_thread_ = base::MakeUnique<AudioManagerThread>(); | 1708 audio_thread_ = base::MakeUnique<AudioManagerThread>(); |
1707 audio_manager_ = media::AudioManager::Create( | 1709 audio_manager_ = media::AudioManager::Create( |
1708 audio_thread_->task_runner(), audio_thread_->worker_task_runner(), | 1710 audio_thread_->task_runner(), audio_thread_->worker_task_runner(), |
1709 MediaInternals::GetInstance()); | 1711 MediaInternals::GetInstance()); |
1710 } | 1712 } |
1711 CHECK(audio_manager_); | 1713 CHECK(audio_manager_); |
1712 } | 1714 } |
1713 | 1715 |
1714 } // namespace content | 1716 } // namespace content |
OLD | NEW |