Index: src/effects/GrCircleBlurFragmentProcessor.cpp |
diff --git a/src/effects/GrCircleBlurFragmentProcessor.cpp b/src/effects/GrCircleBlurFragmentProcessor.cpp |
index 7776b630d018dc1255a7a8568654bfdcd6fb6884..365795fd7cfd823aeca403c2513a092988ac7e67 100644 |
--- a/src/effects/GrCircleBlurFragmentProcessor.cpp |
+++ b/src/effects/GrCircleBlurFragmentProcessor.cpp |
@@ -83,11 +83,12 @@ void GrGLCircleBlurFragmentProcessor::onSetData(const GrGLSLProgramDataManager& |
GrCircleBlurFragmentProcessor::GrCircleBlurFragmentProcessor(const SkRect& circle, |
float sigma, |
float offset, |
- GrTexture* blurProfile) |
+ GrTexture* blurProfile, |
+ GrRenderTarget* dstRT) |
: fCircle(circle) |
, fSigma(sigma) |
, fOffset(offset) |
- , fBlurProfileAccess(blurProfile, GrTextureParams::kBilerp_FilterMode) { |
+ , fBlurProfileAccess(blurProfile, GrTextureParams::kBilerp_FilterMode, SkShader::kClamp_TileMode, dstRT) { |
this->initClassID<GrCircleBlurFragmentProcessor>(); |
this->addTextureAccess(&fBlurProfileAccess); |
this->setWillReadFragmentPosition(); |
@@ -215,7 +216,8 @@ GrTexture* GrCircleBlurFragmentProcessor::CreateCircleBlurProfileTexture( |
GrTextureProvider* textureProvider, |
const SkRect& circle, |
float sigma, |
- float* offset) { |
+ float* offset, |
+ GrRenderTarget* dstRT) { |
float halfWH = circle.width() / 2.0f; |
int size; |
@@ -255,7 +257,7 @@ const GrFragmentProcessor* GrCircleBlurFragmentProcessor::TestCreate(GrProcessor |
SkScalar wh = d->fRandom->nextRangeScalar(100.f, 1000.f); |
SkScalar sigma = d->fRandom->nextRangeF(1.f,10.f); |
SkRect circle = SkRect::MakeWH(wh, wh); |
- return GrCircleBlurFragmentProcessor::Create(d->fContext->textureProvider(), circle, sigma); |
+ return GrCircleBlurFragmentProcessor::Create(d->fContext->textureProvider(), circle, sigma, NULL); |
} |
#endif |