| 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" |
| 11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
| 12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/threading/thread_local.h" | 14 #include "base/threading/thread_local.h" |
| 15 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "base/threading/worker_pool.h" | 16 #include "base/threading/worker_pool.h" |
| 16 #include "build/build_config.h" | 17 #include "build/build_config.h" |
| 17 #include "content/child/child_process.h" | 18 #include "content/child/child_process.h" |
| 18 #include "content/child/thread_safe_sender.h" | 19 #include "content/child/thread_safe_sender.h" |
| 19 #include "content/common/establish_channel_params.h" | 20 #include "content/common/establish_channel_params.h" |
| 20 #include "content/common/gpu_host_messages.h" | 21 #include "content/common/gpu_host_messages.h" |
| 21 #include "content/gpu/gpu_service_factory.h" | 22 #include "content/gpu/gpu_service_factory.h" |
| 22 #include "content/public/common/content_client.h" | 23 #include "content/public/common/content_client.h" |
| 23 #include "content/public/common/content_switches.h" | 24 #include "content/public/common/content_switches.h" |
| 24 #include "content/public/common/service_manager_connection.h" | 25 #include "content/public/common/service_manager_connection.h" |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 525 |
| 525 void GpuChildThread::BindServiceFactoryRequest( | 526 void GpuChildThread::BindServiceFactoryRequest( |
| 526 service_manager::mojom::ServiceFactoryRequest request) { | 527 service_manager::mojom::ServiceFactoryRequest request) { |
| 527 DVLOG(1) << "GPU: Binding service_manager::mojom::ServiceFactoryRequest"; | 528 DVLOG(1) << "GPU: Binding service_manager::mojom::ServiceFactoryRequest"; |
| 528 DCHECK(service_factory_); | 529 DCHECK(service_factory_); |
| 529 service_factory_bindings_.AddBinding(service_factory_.get(), | 530 service_factory_bindings_.AddBinding(service_factory_.get(), |
| 530 std::move(request)); | 531 std::move(request)); |
| 531 } | 532 } |
| 532 | 533 |
| 533 } // namespace content | 534 } // namespace content |
| OLD | NEW |