| 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 "gpu/config/gpu_info_collector.h" | 5 #include "gpu/config/gpu_info_collector.h" |
| 6 | 6 |
| 7 // This has to be included before windows.h. | 7 // This has to be included before windows.h. |
| 8 #include "third_party/re2/src/re2/re2.h" | 8 #include "third_party/re2/src/re2/re2.h" |
| 9 | 9 |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 " Direct3D(\\w+)", | 319 " Direct3D(\\w+)", |
| 320 &direct3d_version) && | 320 &direct3d_version) && |
| 321 RE2::PartialMatch(gpu_info->gl_renderer, | 321 RE2::PartialMatch(gpu_info->gl_renderer, |
| 322 " vs_(\\d+)_(\\d+)", | 322 " vs_(\\d+)_(\\d+)", |
| 323 &vertex_shader_major_version, | 323 &vertex_shader_major_version, |
| 324 &vertex_shader_minor_version) && | 324 &vertex_shader_minor_version) && |
| 325 RE2::PartialMatch(gpu_info->gl_renderer, | 325 RE2::PartialMatch(gpu_info->gl_renderer, |
| 326 " ps_(\\d+)_(\\d+)", | 326 " ps_(\\d+)_(\\d+)", |
| 327 &pixel_shader_major_version, | 327 &pixel_shader_major_version, |
| 328 &pixel_shader_minor_version)) { | 328 &pixel_shader_minor_version)) { |
| 329 gpu_info->can_lose_context = direct3d_version == "9"; | |
| 330 gpu_info->vertex_shader_version = | 329 gpu_info->vertex_shader_version = |
| 331 base::StringPrintf("%d.%d", | 330 base::StringPrintf("%d.%d", |
| 332 vertex_shader_major_version, | 331 vertex_shader_major_version, |
| 333 vertex_shader_minor_version); | 332 vertex_shader_minor_version); |
| 334 gpu_info->pixel_shader_version = | 333 gpu_info->pixel_shader_version = |
| 335 base::StringPrintf("%d.%d", | 334 base::StringPrintf("%d.%d", |
| 336 pixel_shader_major_version, | 335 pixel_shader_major_version, |
| 337 pixel_shader_minor_version); | 336 pixel_shader_minor_version); |
| 338 | 337 |
| 339 // ANGLE's EGL vendor strings are of the form: | 338 // ANGLE's EGL vendor strings are of the form: |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 } | 493 } |
| 495 | 494 |
| 496 MergeGPUInfoGL(basic_gpu_info, context_gpu_info); | 495 MergeGPUInfoGL(basic_gpu_info, context_gpu_info); |
| 497 | 496 |
| 498 basic_gpu_info->dx_diagnostics_info_state = | 497 basic_gpu_info->dx_diagnostics_info_state = |
| 499 context_gpu_info.dx_diagnostics_info_state; | 498 context_gpu_info.dx_diagnostics_info_state; |
| 500 basic_gpu_info->dx_diagnostics = context_gpu_info.dx_diagnostics; | 499 basic_gpu_info->dx_diagnostics = context_gpu_info.dx_diagnostics; |
| 501 } | 500 } |
| 502 | 501 |
| 503 } // namespace gpu | 502 } // namespace gpu |
| OLD | NEW |