Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index 2f4329ae048b0704d756c672df65274d01c0b193..fb26867cf6f9e1e857c28d9964f79b430461ffdc 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
@@ -336,7 +336,7 @@ void GrGLProgramBuilder::emitAndInstallProc(const GrPendingFragmentStage& fs, |
GrGLInstalledFragProc* ifp = SkNEW(GrGLInstalledFragProc); |
const GrFragmentProcessor& fp = *fs.getProcessor(); |
- ifp->fGLProc.reset(fp.getFactory().createGLInstance(fp)); |
+ ifp->fGLProc.reset(fp.createGLInstance()); |
SkSTArray<4, GrGLProcessor::TextureSampler> samplers(fp.numTextures()); |
this->emitSamplers(fp, &samplers, ifp); |
@@ -360,7 +360,7 @@ void GrGLProgramBuilder::emitAndInstallProc(const GrGeometryProcessor& gp, |
fGeometryProcessor = SkNEW(GrGLInstalledGeoProc); |
const GrBatchTracker& bt = fOptState.getBatchTracker(); |
- fGeometryProcessor->fGLProc.reset(gp.getFactory().createGLInstance(gp, bt)); |
+ fGeometryProcessor->fGLProc.reset(gp.createGLInstance(bt)); |
SkSTArray<4, GrGLProcessor::TextureSampler> samplers(gp.numTextures()); |
this->emitSamplers(gp, &samplers, fGeometryProcessor); |