Index: gm/dcshader.cpp |
diff --git a/gm/dcshader.cpp b/gm/dcshader.cpp |
index 0f481df2682ed082353966f8791bc24b4687d616..d58d4e3c2e7768bb7cd7edccb19762817cda0a52 100644 |
--- a/gm/dcshader.cpp |
+++ b/gm/dcshader.cpp |
@@ -55,7 +55,7 @@ SkFlattenable* DCShader::CreateProc(SkReadBuffer& buf) { |
class DCFP : public GrFragmentProcessor { |
public: |
- DCFP(const SkMatrix& m) : fDeviceTransform(kDevice_GrCoordSet, m) { |
+ DCFP(GrShaderDataManager*, const SkMatrix& m) : fDeviceTransform(kDevice_GrCoordSet, m) { |
this->addCoordTransform(&fDeviceTransform); |
this->initClassID<DCFP>(); |
} |
@@ -101,8 +101,9 @@ private: |
bool DCShader::asFragmentProcessor(GrContext*, const SkPaint& paint, const SkMatrix& viewM, |
const SkMatrix* localMatrix, GrColor* color, |
- GrShaderDataManager*, GrFragmentProcessor** fp) const { |
- *fp = SkNEW_ARGS(DCFP, (fDeviceMatrix)); |
+ GrShaderDataManager* shaderDataManager, |
+ GrFragmentProcessor** fp) const { |
+ *fp = SkNEW_ARGS(DCFP, (shaderDataManager, fDeviceMatrix)); |
*color = GrColorPackA4(paint.getAlpha()); |
return true; |
} |