Name of primitive processor will now be printed in generated shader code

BUG=skia:

Review URL: https://codereview.chromium.org/1253513003
This commit is contained in:
wangyix 2015-07-23 08:02:09 -07:00 committed by Commit bot
parent 9efef7b56f
commit 150714fb16

View File

@ -268,6 +268,7 @@ void GrGLProgramBuilder::emitAndInstallProc(const GrPrimitiveProcessor& proc,
SkString openBrace;
openBrace.printf("{ // Stage %d, %s\n", fStageIndex, proc.name());
fFS.codeAppend(openBrace.c_str());
fVS.codeAppendf("// Primitive Processor %s\n", proc.name());
this->emitAndInstallProc(proc, outputColor->c_str(), outputCoverage->c_str());