| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/config/gpu_info_collector_linux.h" | 5 #include "gpu/config/gpu_info_collector_linux.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "base/strings/string_piece.h" | 17 #include "base/strings/string_piece.h" |
| 18 #include "base/strings/string_split.h" | 18 #include "base/strings/string_split.h" |
| 19 #include "base/strings/string_tokenizer.h" | 19 #include "base/strings/string_tokenizer.h" |
| 20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 21 #include "base/trace_event/trace_event.h" | 21 #include "base/trace_event/trace_event.h" |
| 22 #include "gpu/config/gpu_info_collector.h" | 22 #include "gpu/config/gpu_info_collector.h" |
| 23 #include "ui/gl/gl_bindings.h" | 23 #include "ui/gl/gl_bindings.h" |
| 24 #include "ui/gl/gl_context.h" | 24 #include "ui/gl/gl_context.h" |
| 25 #include "ui/gl/gl_implementation.h" | 25 #include "ui/gl/gl_implementation.h" |
| 26 #include "ui/gl/gl_surface.h" | 26 #include "ui/gl/gl_surface.h" |
| 27 #include "ui/gl/gl_switches.h" | 27 #include "ui/gl/gl_switches.h" |
| 28 | 28 |
| 29 #if defined(USE_LIBPCI) | 29 #if defined(USE_LIBPCI) |
| 30 #include "library_loaders/libpci.h" | 30 #include "library_loaders/libpci.h" // nogncheck |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 namespace gpu { | 33 namespace gpu { |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| 37 #if defined(USE_LIBPCI) | 37 #if defined(USE_LIBPCI) |
| 38 // This checks if a system supports PCI bus. | 38 // This checks if a system supports PCI bus. |
| 39 // We check the existence of /sys/bus/pci or /sys/bug/pci_express. | 39 // We check the existence of /sys/bus/pci or /sys/bug/pci_express. |
| 40 bool IsPciSupported() { | 40 bool IsPciSupported() { |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 gpu_info->driver_version = driver_version; | 269 gpu_info->driver_version = driver_version; |
| 270 return kCollectInfoSuccess; | 270 return kCollectInfoSuccess; |
| 271 } | 271 } |
| 272 | 272 |
| 273 void MergeGPUInfo(GPUInfo* basic_gpu_info, | 273 void MergeGPUInfo(GPUInfo* basic_gpu_info, |
| 274 const GPUInfo& context_gpu_info) { | 274 const GPUInfo& context_gpu_info) { |
| 275 MergeGPUInfoGL(basic_gpu_info, context_gpu_info); | 275 MergeGPUInfoGL(basic_gpu_info, context_gpu_info); |
| 276 } | 276 } |
| 277 | 277 |
| 278 } // namespace gpu | 278 } // namespace gpu |
| OLD | NEW |