Index: src/views/SkWidgets.cpp |
diff --git a/src/views/SkWidgets.cpp b/src/views/SkWidgets.cpp |
index fb16f1ec0d82b8c992ffea5b9d360107e61d721a..cde2b427389fad6c738289c1716ca2a471804764 100644 |
--- a/src/views/SkWidgets.cpp |
+++ b/src/views/SkWidgets.cpp |
@@ -234,6 +234,7 @@ static const char* computeAnimatorState(int enabled, int focused, SkButtonWidget |
return "enabled"; |
} |
+#include "SkBlurMask.h" |
#include "SkBlurMaskFilter.h" |
#include "SkEmbossMaskFilter.h" |
@@ -255,7 +256,8 @@ static void create_emboss(SkPaint* paint, SkScalar radius, bool focus, bool pres |
if (focus) |
light.fDirection[2] += SK_Scalar1/4; |
- paint->setMaskFilter(new SkEmbossMaskFilter(light, radius))->unref(); |
+ SkScalar sigma = SkBlurMask::ConvertRadiusToSigma(radius); |
+ paint->setMaskFilter(new SkEmbossMaskFilter(sigma, light))->unref(); |
} |
void SkPushButtonWidget::onDraw(SkCanvas* canvas) |