Index: src/effects/SkDisplacementMapEffect.cpp |
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp |
index 55935b4bdcd91181e56ec5ec7209d018f7f52a31..26aaa022ace0d11220a87d6987bccb8ba69bc2a3 100644 |
--- a/src/effects/SkDisplacementMapEffect.cpp |
+++ b/src/effects/SkDisplacementMapEffect.cpp |
@@ -286,12 +286,12 @@ public: |
static inline void GenKey(const GrDrawEffect&, const GrGLCaps&, GrEffectKeyBuilder*); |
- virtual void setData(const GrGLUniformManager&, const GrDrawEffect&) SK_OVERRIDE; |
+ virtual void setData(const GrGLProgramDataManager&, const GrDrawEffect&) SK_OVERRIDE; |
private: |
SkDisplacementMapEffect::ChannelSelectorType fXChannelSelector; |
SkDisplacementMapEffect::ChannelSelectorType fYChannelSelector; |
- GrGLUniformManager::UniformHandle fScaleUni; |
+ GrGLProgramDataManager::UniformHandle fScaleUni; |
typedef GrGLEffect INHERITED; |
}; |
@@ -588,16 +588,16 @@ void GrGLDisplacementMapEffect::emitCode(GrGLShaderBuilder* builder, |
builder->fsCodeAppend(";\n"); |
} |
-void GrGLDisplacementMapEffect::setData(const GrGLUniformManager& uman, |
+void GrGLDisplacementMapEffect::setData(const GrGLProgramDataManager& pdman, |
const GrDrawEffect& drawEffect) { |
const GrDisplacementMapEffect& displacementMap = |
drawEffect.castEffect<GrDisplacementMapEffect>(); |
GrTexture* colorTex = displacementMap.texture(1); |
SkScalar scaleX = SkScalarDiv(displacementMap.scale().fX, SkIntToScalar(colorTex->width())); |
SkScalar scaleY = SkScalarDiv(displacementMap.scale().fY, SkIntToScalar(colorTex->height())); |
- uman.set2f(fScaleUni, SkScalarToFloat(scaleX), |
- colorTex->origin() == kTopLeft_GrSurfaceOrigin ? |
- SkScalarToFloat(scaleY) : SkScalarToFloat(-scaleY)); |
+ pdman.set2f(fScaleUni, SkScalarToFloat(scaleX), |
+ colorTex->origin() == kTopLeft_GrSurfaceOrigin ? |
+ SkScalarToFloat(scaleY) : SkScalarToFloat(-scaleY)); |
} |
void GrGLDisplacementMapEffect::GenKey(const GrDrawEffect& drawEffect, |