| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chrome/gpu/chrome_content_gpu_client.h" | 5 #include "chrome/gpu/chrome_content_gpu_client.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 metrics::mojom::CallStackProfileCollectorPtr browser_interface; | 80 metrics::mojom::CallStackProfileCollectorPtr browser_interface; |
| 81 content::ChildThread::Get()->GetConnector()->BindInterface( | 81 content::ChildThread::Get()->GetConnector()->BindInterface( |
| 82 content::mojom::kBrowserServiceName, &browser_interface); | 82 content::mojom::kBrowserServiceName, &browser_interface); |
| 83 g_call_stack_profile_collector.Get().SetParentProfileCollector( | 83 g_call_stack_profile_collector.Get().SetParentProfileCollector( |
| 84 std::move(browser_interface)); | 84 std::move(browser_interface)); |
| 85 } | 85 } |
| 86 | 86 |
| 87 #if defined(OS_CHROMEOS) | 87 #if defined(OS_CHROMEOS) |
| 88 | 88 |
| 89 void ChromeContentGpuClient::CreateArcVideoAcceleratorService( | 89 void ChromeContentGpuClient::CreateArcVideoAcceleratorService( |
| 90 const service_manager::BindSourceInfo& source_info, |
| 90 ::arc::mojom::VideoAcceleratorServiceRequest request) { | 91 ::arc::mojom::VideoAcceleratorServiceRequest request) { |
| 91 mojo::MakeStrongBinding( | 92 mojo::MakeStrongBinding( |
| 92 base::MakeUnique<chromeos::arc::GpuArcVideoService>(gpu_preferences_), | 93 base::MakeUnique<chromeos::arc::GpuArcVideoService>(gpu_preferences_), |
| 93 std::move(request)); | 94 std::move(request)); |
| 94 } | 95 } |
| 95 | 96 |
| 96 #endif | 97 #endif |
| OLD | NEW |