| OLD | NEW |
| 1 // Copyright (c) 2006-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 <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/gfx/gl/gl_bindings.h" | 10 #include "app/gfx/gl/gl_bindings.h" |
| 11 #include "app/gfx/gl/gl_context.h" | 11 #include "app/gfx/gl/gl_context.h" |
| 12 #include "app/gfx/gl/gl_implementation.h" | 12 #include "app/gfx/gl/gl_implementation.h" |
| 13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 return false; | 270 return false; |
| 271 if (pos != std::string::npos) | 271 if (pos != std::string::npos) |
| 272 driver_version = driver_version.substr(0, pos); | 272 driver_version = driver_version.substr(0, pos); |
| 273 | 273 |
| 274 gpu_info->driver_vendor = pieces[1]; | 274 gpu_info->driver_vendor = pieces[1]; |
| 275 gpu_info->driver_version = driver_version; | 275 gpu_info->driver_version = driver_version; |
| 276 return true; | 276 return true; |
| 277 } | 277 } |
| 278 | 278 |
| 279 } // namespace gpu_info_collector | 279 } // namespace gpu_info_collector |
| OLD | NEW |