Index: src/gpu/gl/GrGLProgramEffects.cpp |
diff --git a/src/gpu/gl/GrGLProgramEffects.cpp b/src/gpu/gl/GrGLProgramEffects.cpp |
index 8d97b42329368171da6fd5808277e2049b31bcc1..72a9c99f73a7e8c0c96ef324d59fac3d2b02e4f0 100644 |
--- a/src/gpu/gl/GrGLProgramEffects.cpp |
+++ b/src/gpu/gl/GrGLProgramEffects.cpp |
@@ -387,6 +387,25 @@ void GrGLVertexProgramEffects::setData(GrGpuGL* gpu, |
} |
} |
+void GrGLVertexProgramEffects::setData(GrGpuGL* gpu, |
+ GrGpu::DrawType drawType, |
+ const GrGLProgramDataManager& programDataManager, |
+ const GrEffectStage* effectStage) { |
+ int numEffects = fGLEffects.count(); |
+ SkASSERT(numEffects == fTransforms.count()); |
+ SkASSERT(numEffects == fSamplers.count()); |
+ SkASSERT(1 == numEffects); |
+ GrDrawEffect drawEffect(*effectStage, fHasExplicitLocalCoords); |
+ fGLEffects[0]->setData(programDataManager, drawEffect); |
+ if (GrGpu::IsPathRenderingDrawType(drawType)) { |
+ this->setPathTransformData(gpu, programDataManager, drawEffect, 0); |
+ } else { |
+ this->setTransformData(gpu, programDataManager, drawEffect, 0); |
+ } |
+ |
+ this->bindTextures(gpu, drawEffect.effect(), 0); |
+} |
+ |
void GrGLVertexProgramEffects::setTransformData(GrGpuGL* gpu, |
const GrGLProgramDataManager& pdman, |
const GrDrawEffect& drawEffect, |