Index: tests/PrimitiveProcessorTest.cpp |
diff --git a/tests/PrimitiveProcessorTest.cpp b/tests/PrimitiveProcessorTest.cpp |
index 9ca6575a7226342a3b48fd40791895f11bde7312..aeaa36f3e567ce37acd525f2680ba304f5595094 100644 |
--- a/tests/PrimitiveProcessorTest.cpp |
+++ b/tests/PrimitiveProcessorTest.cpp |
@@ -19,6 +19,7 @@ |
#include "GrGpu.h" |
#include "GrTextureProvider.h" |
#include "glsl/GrGLSLGeometryProcessor.h" |
+#include "glsl/GrGLSLFragmentShaderBuilder.h" |
#include "glsl/GrGLSLVarying.h" |
#include "batches/GrVertexBatch.h" |
#include "SkString.h" |
@@ -68,6 +69,9 @@ private: |
const GP& gp = args.fGP.cast<GP>(); |
args.fVaryingHandler->emitAttributes(gp); |
this->setupPosition(args.fVertBuilder, gpArgs, gp.fAttribs[0].fName); |
+ GrGLSLPPFragmentBuilder* fragBuilder = args.fFragBuilder; |
+ fragBuilder->codeAppendf("%s = vec4(1);", args.fOutputColor); |
+ fragBuilder->codeAppendf("%s = vec4(1);", args.fOutputCoverage); |
} |
void setData(const GrGLSLProgramDataManager& pdman, |
const GrPrimitiveProcessor& primProc, |