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

Unified Diff: gm/imageblur.cpp

Issue 182983003: Factory methods for heap-allocated SkImageFilter objects. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 6 years, 9 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 | « gm/dropshadowimagefilter.cpp ('k') | gm/imageblurtiled.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 4c3f42d825ce194d502013740c9e7a8fd48423ed..ff8a4812cfb5cf86054f9adf4604c197a07cf17d 100644
--- a/gm/imageblur.cpp
+++ b/gm/imageblur.cpp
@@ -33,7 +33,7 @@ protected:
virtual void onDraw(SkCanvas* canvas) {
SkPaint paint;
- paint.setImageFilter(new SkBlurImageFilter(fSigmaX, fSigmaY))->unref();
+ paint.setImageFilter(SkBlurImageFilter::Create(fSigmaX, fSigmaY))->unref();
canvas->saveLayer(NULL, &paint);
const char* str = "The quick brown fox jumped over the lazy dog.";
« no previous file with comments | « gm/dropshadowimagefilter.cpp ('k') | gm/imageblurtiled.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698