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

Unified Diff: gm/imageblur.cpp

Issue 1518643002: SkBlurImageFilter returns input when sigma = 0 (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: clean up 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
« no previous file with comments | « bench/BlurImageFilterBench.cpp ('k') | gm/imageblur2.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/imageblur.cpp
diff --git a/gm/imageblur.cpp b/gm/imageblur.cpp
index 575f02c095a0aacd4b98c954de0f58452c525e87..22ea408e279909d8bcc7c6e1ed634a32a2a69e11 100644
--- a/gm/imageblur.cpp
+++ b/gm/imageblur.cpp
@@ -14,7 +14,8 @@
void imageblurgm_draw(SkScalar fSigmaX, SkScalar fSigmaY, SkCanvas* canvas) {
SkPaint paint;
- paint.setImageFilter(SkBlurImageFilter::Create(fSigmaX, fSigmaY))->unref();
+ SkAutoTUnref<SkImageFilter> blur(SkBlurImageFilter::Create(fSigmaX, fSigmaY));
+ paint.setImageFilter(blur);
canvas->saveLayer(nullptr, &paint);
const char* str = "The quick brown fox jumped over the lazy dog.";
« no previous file with comments | « bench/BlurImageFilterBench.cpp ('k') | gm/imageblur2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698