Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: src/effects/GrCircleBlurFragmentProcessor.h

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkXfermode_proccoeff.h ('k') | src/effects/GrCircleBlurFragmentProcessor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/GrCircleBlurFragmentProcessor.h
diff --git a/src/effects/GrCircleBlurFragmentProcessor.h b/src/effects/GrCircleBlurFragmentProcessor.h
index 4d39ec8e11f661c76f09a028b51e5d6e7151bc3e..5a64da45d33dbbe46d6a55af51124d3c913b5128 100644
--- a/src/effects/GrCircleBlurFragmentProcessor.h
+++ b/src/effects/GrCircleBlurFragmentProcessor.h
@@ -26,17 +26,17 @@ public:
const char* name() const override { return "CircleBlur"; }
static const GrFragmentProcessor* Create(GrTextureProvider*textureProvider,
- const SkRect& circle, float sigma) {
+ const SkRect& circle, float sigma, GrRenderTarget* dstRT) {
float offset;
SkAutoTUnref<GrTexture> blurProfile(CreateCircleBlurProfileTexture(textureProvider,
circle,
sigma,
- &offset));
+ &offset, dstRT));
if (!blurProfile) {
return nullptr;
}
- return new GrCircleBlurFragmentProcessor(circle, sigma, offset, blurProfile);
+ return new GrCircleBlurFragmentProcessor(circle, sigma, offset, blurProfile, dstRT);
}
const SkRect& circle() const { return fCircle; }
@@ -46,7 +46,7 @@ public:
private:
GrCircleBlurFragmentProcessor(const SkRect& circle, float sigma,
- float offset, GrTexture* blurProfile);
+ float offset, GrTexture* blurProfile, GrRenderTarget* dstRT);
GrGLFragmentProcessor* onCreateGLInstance() const override;
@@ -62,7 +62,8 @@ private:
static GrTexture* CreateCircleBlurProfileTexture(GrTextureProvider*,
const SkRect& circle,
- float sigma, float* offset);
+ float sigma, float* offset,
+ GrRenderTarget* dstRT);
SkRect fCircle;
float fSigma;
« no previous file with comments | « src/core/SkXfermode_proccoeff.h ('k') | src/effects/GrCircleBlurFragmentProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698