| Index: Source/platform/graphics/skia/SkiaUtils.h
|
| diff --git a/Source/platform/graphics/skia/SkiaUtils.h b/Source/platform/graphics/skia/SkiaUtils.h
|
| index 91a916dc997069c3950de45d6c7402901e0428bc..1aa4f1929a7cd7bdafbffb9b7a68d4756eb952ec 100644
|
| --- a/Source/platform/graphics/skia/SkiaUtils.h
|
| +++ b/Source/platform/graphics/skia/SkiaUtils.h
|
| @@ -129,6 +129,13 @@ InterpolationQuality computeInterpolationQuality(
|
|
|
| bool shouldDrawAntiAliased(const GraphicsContext*, const SkRect& destRect);
|
|
|
| +// This replicates the old skia behavior when it used to take radius for blur. Now it takes sigma.
|
| +inline SkScalar skBlurRadiusToSigma(SkScalar radius)
|
| +{
|
| + SkASSERT(radius > 0);
|
| + return 0.288675f * radius + 0.5f;
|
| +}
|
| +
|
| } // namespace blink
|
|
|
| #endif // SkiaUtils_h
|
|
|