Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: gpu/config/gpu_info_collector.cc

Issue 15890002: Display GL window system binding information in about:gpu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed typo in unit test. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/config/gpu_info.h ('k') | gpu/config/gpu_info_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/config/gpu_info_collector.cc
diff --git a/gpu/config/gpu_info_collector.cc b/gpu/config/gpu_info_collector.cc
index eb40dfc21e2920130eec2086fb46896d70251034..e141e577e55652a6a1b1f42d2d536b0819cc2dc6 100644
--- a/gpu/config/gpu_info_collector.cc
+++ b/gpu/config/gpu_info_collector.cc
@@ -15,6 +15,7 @@
#include "base/strings/string_split.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
+#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_surface.h"
namespace {
@@ -99,6 +100,14 @@ bool CollectGraphicsInfoGL(GPUInfo* gpu_info) {
gpu_info->gl_extensions = GetGLString(GL_EXTENSIONS);
gpu_info->gl_version_string = GetGLString(GL_VERSION);
std::string glsl_version_string = GetGLString(GL_SHADING_LANGUAGE_VERSION);
+
+ gfx::GLWindowSystemBindingInfo window_system_binding_info;
+ if (GetGLWindowSystemBindingInfo(&window_system_binding_info)) {
+ gpu_info->gl_ws_vendor = window_system_binding_info.vendor;
+ gpu_info->gl_ws_version = window_system_binding_info.version;
+ gpu_info->gl_ws_extensions = window_system_binding_info.extensions;
+ }
+
// TODO(kbr): remove once the destruction of a current context automatically
// clears the current context.
context->ReleaseCurrent(surface.get());
@@ -123,6 +132,9 @@ void MergeGPUInfoGL(GPUInfo* basic_gpu_info,
context_gpu_info.pixel_shader_version;
basic_gpu_info->vertex_shader_version =
context_gpu_info.vertex_shader_version;
+ basic_gpu_info->gl_ws_vendor = context_gpu_info.gl_ws_vendor;
+ basic_gpu_info->gl_ws_version = context_gpu_info.gl_ws_version;
+ basic_gpu_info->gl_ws_extensions = context_gpu_info.gl_ws_extensions;
if (!context_gpu_info.driver_vendor.empty())
basic_gpu_info->driver_vendor = context_gpu_info.driver_vendor;
« no previous file with comments | « gpu/config/gpu_info.h ('k') | gpu/config/gpu_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698