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 "services/ui/gpu/gpu_main.h" | 5 #include "services/ui/gpu/gpu_main.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/power_monitor/power_monitor_device_source.h" | 10 #include "base/power_monitor/power_monitor_device_source.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 gpu_internal_.Bind(std::move(gpu_service_info)); | 206 gpu_internal_.Bind(std::move(gpu_service_info)); |
207 | 207 |
208 display_provider_ = base::MakeUnique<MusDisplayProvider>( | 208 display_provider_ = base::MakeUnique<MusDisplayProvider>( |
209 gpu_command_service_, | 209 gpu_command_service_, |
210 base::MakeUnique<ServerGpuMemoryBufferManager>(gpu_internal_.get(), | 210 base::MakeUnique<ServerGpuMemoryBufferManager>(gpu_internal_.get(), |
211 1 /* client_id */), | 211 1 /* client_id */), |
212 image_factory); | 212 image_factory); |
213 | 213 |
214 frame_sink_manager_ = base::MakeUnique<viz::MojoFrameSinkManager>( | 214 frame_sink_manager_ = base::MakeUnique<viz::MojoFrameSinkManager>( |
215 display_provider_.get(), std::move(request), std::move(client)); | 215 true, display_provider_.get(), std::move(request), std::move(client)); |
216 } | 216 } |
217 | 217 |
218 void GpuMain::TearDownOnCompositorThread() { | 218 void GpuMain::TearDownOnCompositorThread() { |
219 frame_sink_manager_.reset(); | 219 frame_sink_manager_.reset(); |
220 display_provider_.reset(); | 220 display_provider_.reset(); |
221 gpu_internal_.reset(); | 221 gpu_internal_.reset(); |
222 } | 222 } |
223 | 223 |
224 void GpuMain::TearDownOnGpuThread() { | 224 void GpuMain::TearDownOnGpuThread() { |
225 gpu_service_.reset(); | 225 gpu_service_.reset(); |
(...skipping 28 matching lines...) Expand all Loading... |
254 // TODO(sad): https://crbug.com/645602 | 254 // TODO(sad): https://crbug.com/645602 |
255 } | 255 } |
256 | 256 |
257 bool GpuMain::EnsureSandboxInitialized( | 257 bool GpuMain::EnsureSandboxInitialized( |
258 gpu::GpuWatchdogThread* watchdog_thread) { | 258 gpu::GpuWatchdogThread* watchdog_thread) { |
259 // TODO(sad): https://crbug.com/645602 | 259 // TODO(sad): https://crbug.com/645602 |
260 return true; | 260 return true; |
261 } | 261 } |
262 | 262 |
263 } // namespace ui | 263 } // namespace ui |
OLD | NEW |