Index: samplecode/SampleAll.cpp |
=================================================================== |
--- samplecode/SampleAll.cpp (revision 10932) |
+++ samplecode/SampleAll.cpp (working copy) |
@@ -80,7 +80,8 @@ |
static void r0(SkLayerRasterizer* rast, SkPaint& p) { |
p.setMaskFilter(SkBlurMaskFilter::Create(SkIntToScalar(3), |
- SkBlurMaskFilter::kNormal_BlurStyle))->unref(); |
+ SkBlurMaskFilter::kNormal_BlurStyle, |
+ SkBlurMaskFilter::kNone_BlurFlag))->unref(); |
rast->addLayer(p, SkIntToScalar(3), SkIntToScalar(3)); |
p.setMaskFilter(NULL); |
@@ -254,7 +255,10 @@ |
#if 1 |
SkScalar dir[] = { SK_Scalar1, SK_Scalar1, SK_Scalar1 }; |
- paint->setMaskFilter(SkBlurMaskFilter::CreateEmboss(dir, SK_Scalar1/4, SkIntToScalar(4), SkIntToScalar(3)))->unref(); |
+ paint->setMaskFilter(SkBlurMaskFilter::CreateEmboss(dir, |
+ SK_Scalar1/4, |
+ SkIntToScalar(4), |
+ SkIntToScalar(3)))->unref(); |
paint->setColor(SK_ColorBLUE); |
#endif |
} |
@@ -383,8 +387,7 @@ |
light.fAmbient = 0x48; |
light.fSpecular = 0x80; |
SkScalar radius = SkIntToScalar(12)/5; |
- SkEmbossMaskFilter* embossFilter = new SkEmbossMaskFilter(light, |
- radius); |
+ SkEmbossMaskFilter* embossFilter = new SkEmbossMaskFilter(light, radius); |
SkXfermode* xfermode = SkXfermode::Create(SkXfermode::kXor_Mode); |
SkColorFilter* lightingFilter = SkColorFilter::CreateLightingFilter( |