Index: samplecode/SampleBlur.cpp |
diff --git a/samplecode/SampleBlur.cpp b/samplecode/SampleBlur.cpp |
index a918bf217b7d9a9582e36018fe1b74d9057d2bc0..7607dfc9f33db6830c9be1fa78c4a692bebfe7cb 100644 |
--- a/samplecode/SampleBlur.cpp |
+++ b/samplecode/SampleBlur.cpp |
@@ -76,16 +76,16 @@ protected: |
virtual void onDrawContent(SkCanvas* canvas) { |
drawBG(canvas); |
- SkBlurMaskFilter::BlurStyle NONE = SkBlurMaskFilter::BlurStyle(-999); |
+ SkBlurStyle NONE = SkBlurStyle(-999); |
static const struct { |
- SkBlurMaskFilter::BlurStyle fStyle; |
- int fCx, fCy; |
+ SkBlurStyle fStyle; |
+ int fCx, fCy; |
} gRecs[] = { |
{ NONE, 0, 0 }, |
- { SkBlurMaskFilter::kInner_BlurStyle, -1, 0 }, |
- { SkBlurMaskFilter::kNormal_BlurStyle, 0, 1 }, |
- { SkBlurMaskFilter::kSolid_BlurStyle, 0, -1 }, |
- { SkBlurMaskFilter::kOuter_BlurStyle, 1, 0 }, |
+ { kInner_SkBlurStyle, -1, 0 }, |
+ { kNormal_SkBlurStyle, 0, 1 }, |
+ { kSolid_SkBlurStyle, 0, -1 }, |
+ { kOuter_SkBlurStyle, 1, 0 }, |
}; |
SkPaint paint; |
@@ -111,7 +111,7 @@ protected: |
} |
// draw text |
{ |
- SkMaskFilter* mf = SkBlurMaskFilter::Create(SkBlurMaskFilter::kNormal_BlurStyle, |
+ SkMaskFilter* mf = SkBlurMaskFilter::Create(kNormal_SkBlurStyle, |
SkBlurMask::ConvertRadiusToSigma(SkIntToScalar(4)), |
flags); |
paint.setMaskFilter(mf)->unref(); |