From c345c4279bb3394ac54c58ba0a752326a3b8d530 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Fri, 15 Jun 2012 14:16:00 +0000 Subject: [PATCH] Add strings to debug/null interfaces glGetString Review URL: http://codereview.appspot.com/6294062/ git-svn-id: http://skia.googlecode.com/svn/trunk@4263 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/gl/GrGLCreateNullInterface.cpp | 4 ++++ src/gpu/gl/debug/GrGLCreateDebugInterface.cpp | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/gpu/gl/GrGLCreateNullInterface.cpp b/src/gpu/gl/GrGLCreateNullInterface.cpp index bd8ceaa..b9a3c5e 100644 --- a/src/gpu/gl/GrGLCreateNullInterface.cpp +++ b/src/gpu/gl/GrGLCreateNullInterface.cpp @@ -360,6 +360,10 @@ const GrGLubyte* GR_GL_FUNCTION_TYPE nullGLGetString(GrGLenum name) { return (const GrGLubyte*)"4.0 Null GL"; case GR_GL_SHADING_LANGUAGE_VERSION: return (const GrGLubyte*)"4.20.8 Null GLSL"; + case GR_GL_VENDOR: + return (const GrGLubyte*)"Null Vendor"; + case GR_GL_RENDERER: + return (const GrGLubyte*)"The Null (Non-)Renderer"; default: GrCrash("Unexpected name to GetString"); return NULL; diff --git a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp index ebed417..d3d01cc 100644 --- a/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp +++ b/src/gpu/gl/debug/GrGLCreateDebugInterface.cpp @@ -843,9 +843,13 @@ const GrGLubyte* GR_GL_FUNCTION_TYPE debugGLGetString(GrGLenum name) { case GR_GL_EXTENSIONS: return (const GrGLubyte*)"GL_ARB_framebuffer_object GL_ARB_blend_func_extended GL_ARB_timer_query GL_ARB_draw_buffers GL_ARB_occlusion_query GL_EXT_blend_color GL_EXT_stencil_wrap"; case GR_GL_VERSION: - return (const GrGLubyte*)"4.0 Null GL"; + return (const GrGLubyte*)"4.0 Debug GL"; case GR_GL_SHADING_LANGUAGE_VERSION: - return (const GrGLubyte*)"4.20.8 Null GLSL"; + return (const GrGLubyte*)"4.20.8 Debug GLSL"; + case GR_GL_VENDOR: + return (const GrGLubyte*)"Debug Vendor"; + case GR_GL_RENDERER: + return (const GrGLubyte*)"The Debug (Non-)Renderer"; default: GrCrash("Unexpected name to GetString"); return NULL; -- 2.7.4