Add strings to debug/null interfaces glGetString
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 15 Jun 2012 14:16:00 +0000 (14:16 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 15 Jun 2012 14:16:00 +0000 (14:16 +0000)
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
src/gpu/gl/debug/GrGLCreateDebugInterface.cpp

index bd8ceaa..b9a3c5e 100644 (file)
@@ -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;
index ebed417..d3d01cc 100644 (file)
@@ -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;