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 "gpu/ipc/service/gpu_init.h" | 5 #include "gpu/ipc/service/gpu_init.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 10 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "ui/gl/gl_implementation.h" | 21 #include "ui/gl/gl_implementation.h" |
22 #include "ui/gl/gl_switches.h" | 22 #include "ui/gl/gl_switches.h" |
23 #include "ui/gl/gl_utils.h" | 23 #include "ui/gl/gl_utils.h" |
24 #include "ui/gl/init/gl_factory.h" | 24 #include "ui/gl/init/gl_factory.h" |
25 | 25 |
26 #if defined(USE_OZONE) | 26 #if defined(USE_OZONE) |
27 #include "ui/ozone/public/ozone_platform.h" | 27 #include "ui/ozone/public/ozone_platform.h" |
28 #endif | 28 #endif |
29 | 29 |
30 #if defined(OS_WIN) | 30 #if defined(OS_WIN) |
31 #include "gpu/ipc/service/child_window_surface_win.h" | |
32 #include "gpu/ipc/service/direct_composition_surface_win.h" | 31 #include "gpu/ipc/service/direct_composition_surface_win.h" |
33 #endif | 32 #endif |
34 | 33 |
35 namespace gpu { | 34 namespace gpu { |
36 | 35 |
37 namespace { | 36 namespace { |
38 | 37 |
39 void GetGpuInfoFromCommandLine(gpu::GPUInfo& gpu_info, | 38 void GetGpuInfoFromCommandLine(gpu::GPUInfo& gpu_info, |
40 const base::CommandLine& command_line) { | 39 const base::CommandLine& command_line) { |
41 if (!command_line.HasSwitch(switches::kGpuVendorID) || | 40 if (!command_line.HasSwitch(switches::kGpuVendorID) || |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 282 |
284 if (!gpu_info_.sandboxed && !attempted_startsandbox) { | 283 if (!gpu_info_.sandboxed && !attempted_startsandbox) { |
285 gpu_info_.sandboxed = | 284 gpu_info_.sandboxed = |
286 sandbox_helper_->EnsureSandboxInitialized(watchdog_thread_.get()); | 285 sandbox_helper_->EnsureSandboxInitialized(watchdog_thread_.get()); |
287 } | 286 } |
288 | 287 |
289 return true; | 288 return true; |
290 } | 289 } |
291 | 290 |
292 } // namespace gpu | 291 } // namespace gpu |
OLD | NEW |