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

Unified Diff: gm/imagefilterscropexpand.cpp

Issue 1529313003: Fix gaussian blur for small sigma. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | src/effects/SkGpuBlurUtils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/imagefilterscropexpand.cpp
diff --git a/gm/imagefilterscropexpand.cpp b/gm/imagefilterscropexpand.cpp
index b173648a8cca7d855c1d87cf671acfd626e95d4a..4fa9b0084e96e7a5a3b7702b647bc1a4f09588bd 100644
--- a/gm/imagefilterscropexpand.cpp
+++ b/gm/imagefilterscropexpand.cpp
@@ -35,7 +35,7 @@ protected:
return SkString("imagefilterscropexpand");
}
- SkISize onISize() override { return SkISize::Make(570, 650); }
+ SkISize onISize() override { return SkISize::Make(650, 650); }
void onDraw(SkCanvas* canvas) override {
SkAutoTUnref<SkColorFilter> cf(
@@ -78,6 +78,9 @@ protected:
cfAlphaTrans, noopCropped.get(), &big_rect));
Draw(canvas, checkerboard, rect, SkBlurImageFilter::Create(
+ 0.3f, 0.3f, noopCropped.get(), &big_rect));
+
+ Draw(canvas, checkerboard, rect, SkBlurImageFilter::Create(
8.0f, 8.0f, noopCropped.get(), &big_rect));
Draw(canvas, checkerboard, rect, SkDilateImageFilter::Create(
« no previous file with comments | « no previous file | src/effects/SkGpuBlurUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698