Index: src/gpu/gl/builders/GrGLShaderStringBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLShaderStringBuilder.cpp b/src/gpu/gl/builders/GrGLShaderStringBuilder.cpp |
index 296c2beb44fa35ee7cc08d2076fa9b766bfa9b11..b4ce2824e2eda76034ea8268626b32720ca0e126 100644 |
--- a/src/gpu/gl/builders/GrGLShaderStringBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLShaderStringBuilder.cpp |
@@ -8,13 +8,14 @@ |
#include "GrGLShaderStringBuilder.h" |
#include "gl/GrGLGpu.h" |
#include "gl/GrGLSLPrettyPrint.h" |
+#include "SkRTConf.h" |
#include "SkTraceEvent.h" |
#define GL_CALL(X) GR_GL_CALL(gpu->glInterface(), X) |
#define GL_CALL_RET(R, X) GR_GL_CALL_RET(gpu->glInterface(), R, X) |
-// Print the source code for all shaders generated. |
-static const bool c_PrintShaders{false}; |
+SK_CONF_DECLARE(bool, c_PrintShaders, "gpu.printShaders", false, |
+ "Print the source code for all shaders generated."); |
static void print_shader_source(const char** strings, int* lengths, int count); |