| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 #elif defined(OS_MACOSX) | 286 #elif defined(OS_MACOSX) |
| 287 {"Intel Iris Pro OpenGL Engine", | 287 {"Intel Iris Pro OpenGL Engine", |
| 288 "Intel Inc.", | 288 "Intel Inc.", |
| 289 "2.1 INTEL-10.6.20", | 289 "2.1 INTEL-10.6.20", |
| 290 "10.6.20"}, | 290 "10.6.20"}, |
| 291 #elif defined(OS_LINUX) | 291 #elif defined(OS_LINUX) |
| 292 {"Quadro K2000/PCIe/SSE2", | 292 {"Quadro K2000/PCIe/SSE2", |
| 293 "NVIDIA Corporation", | 293 "NVIDIA Corporation", |
| 294 "4.4.0 NVIDIA 331.79", | 294 "4.4.0 NVIDIA 331.79", |
| 295 "331.79"}, | 295 "331.79"}, |
| 296 {"Mesa DRI Intel(R) Haswell Mobile", |
| 297 "Intel Open Source Technology Center", |
| 298 "3.3 (Core Profile) Mesa 10.5.9", |
| 299 "10.5.9"}, |
| 296 #endif | 300 #endif |
| 297 {NULL, NULL, NULL, NULL} | 301 {NULL, NULL, NULL, NULL} |
| 298 }; | 302 }; |
| 299 | 303 |
| 300 GPUInfo gpu_info; | 304 GPUInfo gpu_info; |
| 301 for (int i = 0; kTestStrings[i].gl_renderer != NULL; ++i) { | 305 for (int i = 0; kTestStrings[i].gl_renderer != NULL; ++i) { |
| 302 gpu_info.gl_renderer = kTestStrings[i].gl_renderer; | 306 gpu_info.gl_renderer = kTestStrings[i].gl_renderer; |
| 303 gpu_info.gl_vendor = kTestStrings[i].gl_vendor; | 307 gpu_info.gl_vendor = kTestStrings[i].gl_vendor; |
| 304 gpu_info.gl_version = kTestStrings[i].gl_version; | 308 gpu_info.gl_version = kTestStrings[i].gl_version; |
| 305 EXPECT_EQ(CollectDriverInfoGL(&gpu_info), kCollectInfoSuccess); | 309 EXPECT_EQ(CollectDriverInfoGL(&gpu_info), kCollectInfoSuccess); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 | 358 |
| 355 gpu_info.gl_vendor = "Google Corporation"; | 359 gpu_info.gl_vendor = "Google Corporation"; |
| 356 gpu_info.gl_renderer = "Chrome GPU Team"; | 360 gpu_info.gl_renderer = "Chrome GPU Team"; |
| 357 IdentifyActiveGPU(&gpu_info); | 361 IdentifyActiveGPU(&gpu_info); |
| 358 EXPECT_FALSE(gpu_info.gpu.active); | 362 EXPECT_FALSE(gpu_info.gpu.active); |
| 359 EXPECT_FALSE(gpu_info.secondary_gpus[0].active); | 363 EXPECT_FALSE(gpu_info.secondary_gpus[0].active); |
| 360 } | 364 } |
| 361 | 365 |
| 362 } // namespace gpu | 366 } // namespace gpu |
| 363 | 367 |
| OLD | NEW |