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

Unified Diff: gm/imageblur2.cpp

Issue 1518643002: SkBlurImageFilter returns input when sigma = 0 (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: fix call sites Created 5 years 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
Index: gm/imageblur2.cpp
diff --git a/gm/imageblur2.cpp b/gm/imageblur2.cpp
index 223582f12029664a2b3a35b4db037e49358a902f..1ce1033d66a0c7a4ee55098bc722790c6f8e6092 100644
--- a/gm/imageblur2.cpp
+++ b/gm/imageblur2.cpp
@@ -58,7 +58,8 @@ protected:
SkScalar sigmaY = kBlurSigmas[y];
SkPaint paint;
- paint.setImageFilter(SkBlurImageFilter::Create(sigmaX, sigmaY))->unref();
+ SkAutoTUnref<SkImageFilter> blur(SkBlurImageFilter::Create(sigmaX, sigmaY));
+ paint.setImageFilter(blur.get());
canvas->saveLayer(nullptr, &paint);
SkRandom rand;
« no previous file with comments | « gm/imageblur.cpp ('k') | gm/imageblurtiled.cpp » ('j') | include/effects/SkBlurImageFilter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698