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

Unified Diff: third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h

Issue 1556523002: Change the equation for computing sigma from blur radius (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update testexpectations 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 | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h
diff --git a/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h b/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h
index bb4fc4364139a19f1a45fa825bf2c9839f1c0c92..3c3781bc87a3a63ba77324fec711ceb68d8e1fdb 100644
--- a/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h
+++ b/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h
@@ -110,7 +110,9 @@ InterpolationQuality computeInterpolationQuality(
inline SkScalar skBlurRadiusToSigma(SkScalar radius)
{
SkASSERT(radius >= 0);
- return 0.288675f * radius;
+ if (radius == 0)
+ return 0.0f;
+ return 0.288675f * radius + 0.5f;
}
template<typename PrimitiveType>
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698