Index: src/gpu/gl/GrGLProgramEffects.cpp |
diff --git a/src/gpu/gl/GrGLProgramEffects.cpp b/src/gpu/gl/GrGLProgramEffects.cpp |
index 8d97b42329368171da6fd5808277e2049b31bcc1..45edca8106c0d506e1794a9915cebd7aab26f6b0 100644 |
--- a/src/gpu/gl/GrGLProgramEffects.cpp |
+++ b/src/gpu/gl/GrGLProgramEffects.cpp |
@@ -387,6 +387,24 @@ void GrGLVertexProgramEffects::setData(GrGpuGL* gpu, |
} |
} |
+void GrGLVertexProgramEffects::setData(GrGpuGL* gpu, |
+ GrGpu::DrawType drawType, |
+ const GrGLProgramDataManager& programDataManager, |
+ const GrEffectStage* effectStage) { |
+ SkASSERT(1 == fTransforms.count()); |
+ SkASSERT(1 == fSamplers.count()); |
+ SkASSERT(1 == fGLEffects.count()); |
+ 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, |