| 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/gpu/gpu_child_thread.h" | 5 #include "content/gpu/gpu_child_thread.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 g_thread_safe_sender.Get() = thread_safe_sender(); | 166 g_thread_safe_sender.Get() = thread_safe_sender(); |
| 167 g_lazy_tls.Pointer()->Set(this); | 167 g_lazy_tls.Pointer()->Set(this); |
| 168 } | 168 } |
| 169 | 169 |
| 170 GpuChildThread::GpuChildThread( | 170 GpuChildThread::GpuChildThread( |
| 171 const gpu::GpuPreferences& gpu_preferences, | 171 const gpu::GpuPreferences& gpu_preferences, |
| 172 const InProcessChildThreadParams& params, | 172 const InProcessChildThreadParams& params, |
| 173 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory) | 173 gpu::GpuMemoryBufferFactory* gpu_memory_buffer_factory) |
| 174 : ChildThreadImpl(ChildThreadImpl::Options::Builder() | 174 : ChildThreadImpl(ChildThreadImpl::Options::Builder() |
| 175 .InBrowserProcess(params) | 175 .InBrowserProcess(params) |
| 176 .UseMojoChannel(true) | |
| 177 .AddStartupFilter(new GpuMemoryBufferMessageFilter( | 176 .AddStartupFilter(new GpuMemoryBufferMessageFilter( |
| 178 gpu_memory_buffer_factory)) | 177 gpu_memory_buffer_factory)) |
| 179 .Build()), | 178 .Build()), |
| 180 gpu_preferences_(gpu_preferences), | 179 gpu_preferences_(gpu_preferences), |
| 181 dead_on_arrival_(false), | 180 dead_on_arrival_(false), |
| 182 in_browser_process_(true), | 181 in_browser_process_(true), |
| 183 gpu_memory_buffer_factory_(gpu_memory_buffer_factory) { | 182 gpu_memory_buffer_factory_(gpu_memory_buffer_factory) { |
| 184 #if defined(OS_WIN) | 183 #if defined(OS_WIN) |
| 185 target_services_ = NULL; | 184 target_services_ = NULL; |
| 186 #endif | 185 #endif |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 | 585 |
| 587 void GpuChildThread::BindProcessControlRequest( | 586 void GpuChildThread::BindProcessControlRequest( |
| 588 mojo::InterfaceRequest<mojom::ProcessControl> request) { | 587 mojo::InterfaceRequest<mojom::ProcessControl> request) { |
| 589 DVLOG(1) << "GPU: Binding ProcessControl request"; | 588 DVLOG(1) << "GPU: Binding ProcessControl request"; |
| 590 DCHECK(process_control_); | 589 DCHECK(process_control_); |
| 591 process_control_bindings_.AddBinding(process_control_.get(), | 590 process_control_bindings_.AddBinding(process_control_.get(), |
| 592 std::move(request)); | 591 std::move(request)); |
| 593 } | 592 } |
| 594 | 593 |
| 595 } // namespace content | 594 } // namespace content |
| OLD | NEW |