aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2018-03-09 16:18:56 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-12 13:26:48 +0000
commit8e03f6930f8e033f3cabfda1a7fba9a6013e3d19 (patch)
treedafeb4bd8b680f06d4c099dfe6a2d5d44beef4b8 /src/utils
parent3be061cd8bc5405e03938eb03a7b3125fd9c81fe (diff)
remove unused ConvertRadiusToSigma from SkBlurMaskFilter
Bug: skia: Change-Id: I1726f22fc40ad61b1b0485bcda6d383614da1fdb Reviewed-on: https://skia-review.googlesource.com/113463 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/SkShadowUtils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/SkShadowUtils.cpp b/src/utils/SkShadowUtils.cpp
index 26ef2adfc5..928bdee103 100644
--- a/src/utils/SkShadowUtils.cpp
+++ b/src/utils/SkShadowUtils.cpp
@@ -6,6 +6,7 @@
*/
#include "SkShadowUtils.h"
+#include "SkBlurMask.h"
#include "SkBlurMaskFilter.h"
#include "SkCanvas.h"
#include "SkColorFilter.h"
@@ -640,7 +641,7 @@ void SkBaseDevice::drawShadow(const SkPath& path, const SkDrawShadowRec& rec) {
paint.setColor(rec.fAmbientColor);
paint.setStrokeWidth(strokeWidth);
paint.setStyle(SkPaint::kStrokeAndFill_Style);
- SkScalar sigma = SkBlurMaskFilter::ConvertRadiusToSigma(blurRadius);
+ SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(blurRadius);
uint32_t flags = SkBlurMaskFilter::kIgnoreTransform_BlurFlag;
paint.setMaskFilter(SkBlurMaskFilter::Make(kNormal_SkBlurStyle, sigma, flags));
this->drawPath(devSpacePath, paint);
@@ -725,7 +726,7 @@ void SkBaseDevice::drawShadow(const SkPath& path, const SkDrawShadowRec& rec) {
SkPaint paint;
paint.setColor(rec.fSpotColor);
- SkScalar sigma = SkBlurMaskFilter::ConvertRadiusToSigma(radius);
+ SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(radius);
uint32_t flags = SkBlurMaskFilter::kIgnoreTransform_BlurFlag;
paint.setMaskFilter(SkBlurMaskFilter::Make(kNormal_SkBlurStyle, sigma, flags));
this->drawPath(path, paint);