| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gpu_info_collector.h" | 5 #include "content/gpu/gpu_info_collector.h" |
| 6 | 6 |
| 7 #include <d3d9.h> | 7 #include <d3d9.h> |
| 8 #include <setupapi.h> | 8 #include <setupapi.h> |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| 11 #include "app/gfx/gl/gl_context_egl.h" | 11 #include "app/gfx/gl/gl_context_egl.h" |
| 12 #include "app/gfx/gl/gl_implementation.h" | 12 #include "app/gfx/gl/gl_implementation.h" |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/scoped_native_library.h" | 15 #include "base/scoped_native_library.h" |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 size_t pos = gl_version_string.find_last_not_of("0123456789."); | 256 size_t pos = gl_version_string.find_last_not_of("0123456789."); |
| 257 if (pos != std::string::npos && pos < gl_version_string.length() - 1) { | 257 if (pos != std::string::npos && pos < gl_version_string.length() - 1) { |
| 258 gpu_info->driver_version = gl_version_string.substr(pos + 1); | 258 gpu_info->driver_version = gl_version_string.substr(pos + 1); |
| 259 return true; | 259 return true; |
| 260 } | 260 } |
| 261 return false; | 261 return false; |
| 262 } | 262 } |
| 263 | 263 |
| 264 } // namespace gpu_info_collector | 264 } // namespace gpu_info_collector |
| OLD | NEW |