| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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 "chrome/gpu/gpu_info_collector.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 8 #include "base/string_piece.h" | 8 #include "base/string_piece.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "app/gfx/gl/gl_bindings.h" | 10 #include "app/gfx/gl/gl_bindings.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // OpenGL doesn't have separate versions for pixel and vertex shader | 156 // OpenGL doesn't have separate versions for pixel and vertex shader |
| 157 // languages, so we just pass the shader_version for both. | 157 // languages, so we just pass the shader_version for both. |
| 158 gpu_info->SetGraphicsInfo(vendor_id, | 158 gpu_info->SetGraphicsInfo(vendor_id, |
| 159 device_id, | 159 device_id, |
| 160 driver_version, | 160 driver_version, |
| 161 shader_version, | 161 shader_version, |
| 162 shader_version, | 162 shader_version, |
| 163 gl_version, | 163 gl_version, |
| 164 false); | 164 false); |
| 165 | 165 |
| 166 gpu_info->SetProgress(GPUInfo::kComplete); |
| 167 |
| 166 return true; | 168 return true; |
| 167 } | 169 } |
| 168 | 170 |
| 169 } // namespace gpu_info_collector | 171 } // namespace gpu_info_collector |
| OLD | NEW |