Add shading language version to GL dump

Bug: skia:6759
Change-Id: I021a8487ccb1d127b2005285e439be34d644f333
Reviewed-on: https://skia-review.googlesource.com/20905
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
Jim Van Verth 2017-06-26 16:33:54 -04:00 committed by Skia Commit-Bot
parent 70e3e9adc5
commit 7f7b902d51

View File

@ -257,14 +257,17 @@ GrGLGpu::GrGLGpu(GrGLContext* ctx, GrContext* context)
const GrGLubyte* vendor;
const GrGLubyte* renderer;
const GrGLubyte* version;
const GrGLubyte* glslVersion;
GL_CALL_RET(vendor, GetString(GR_GL_VENDOR));
GL_CALL_RET(renderer, GetString(GR_GL_RENDERER));
GL_CALL_RET(version, GetString(GR_GL_VERSION));
GL_CALL_RET(glslVersion, GetString(GR_GL_SHADING_LANGUAGE_VERSION));
SkDebugf("------------------------- create GrGLGpu %p --------------\n",
this);
SkDebugf("------ VENDOR %s\n", vendor);
SkDebugf("------ RENDERER %s\n", renderer);
SkDebugf("------ VERSION %s\n", version);
SkDebugf("------ SHADING LANGUAGE VERSION %s\n", glslVersion);
SkDebugf("------ EXTENSIONS\n");
this->glContext().extensions().print();
SkDebugf("\n");