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

Unified Diff: content/gpu/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: 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
Index: content/gpu/gpu_info_collector.cc
diff --git a/content/gpu/gpu_info_collector.cc b/content/gpu/gpu_info_collector.cc
index 0d51b696b64b49d33a67a02d61564a2364763d4f..69215c62354015d9e51b3cf9be654d735ae350b0 100644
--- a/content/gpu/gpu_info_collector.cc
+++ b/content/gpu/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(content::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(content::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;

Powered by Google App Engine
This is Rietveld 408576698