aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2014-07-07 06:17:13 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-07 06:17:13 -0700
commit0b99de05b9237bc396c4e0cc5aafded48d0cdb26 (patch)
treeecafda55207bf8aa4fc3e8754eb96cc0b79f212a
parent82cb86f613300aa26f858e8f46454b1a8a5e2314 (diff)
Add Instant Trace Event for shader compilation in gpu which outputs shader text as attribute
BUG=skia: R=bsalomon@google.com Author: egdaniel@google.com Review URL: https://codereview.chromium.org/368943002
-rw-r--r--src/gpu/gl/GrGLShaderBuilder.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLShaderBuilder.cpp b/src/gpu/gl/GrGLShaderBuilder.cpp
index 764d482389..7d2152f301 100644
--- a/src/gpu/gl/GrGLShaderBuilder.cpp
+++ b/src/gpu/gl/GrGLShaderBuilder.cpp
@@ -767,6 +767,9 @@ static GrGLuint attach_shader(const GrGLContext& glCtx,
return 0;
}
}
+
+ TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("skia.gpu"), "skia_gpu::GLShader",
+ TRACE_EVENT_SCOPE_THREAD, "shader", TRACE_STR_COPY(shaderSrc.c_str()));
if (c_PrintShaders) {
GrPrintf(shaderSrc.c_str());
GrPrintf("\n");