| Index: samplecode/SamplePathEffects.cpp
|
| diff --git a/samplecode/SamplePathEffects.cpp b/samplecode/SamplePathEffects.cpp
|
| index 2a1a49b9495bd15ffc555f764df00bfd4cf686d7..9af0abb59adb20bf597772e767d08c15f198be46 100644
|
| --- a/samplecode/SamplePathEffects.cpp
|
| +++ b/samplecode/SamplePathEffects.cpp
|
| @@ -74,9 +74,9 @@ static SkPathEffect* make_warp_pe() {
|
| #include "SkColorFilter.h"
|
| #include "SkLayerRasterizer.h"
|
|
|
| -class testrast : public SkLayerRasterizer {
|
| +class TestRastBuilder : public SkLayerRasterizer::Builder {
|
| public:
|
| - testrast() {
|
| + TestRastBuilder() {
|
| SkPaint paint;
|
| paint.setAntiAlias(true);
|
|
|
| @@ -177,7 +177,8 @@ protected:
|
|
|
| paint.setARGB(0xFF, 0, 0, 0);
|
| paint.setPathEffect(make_warp_pe())->unref();
|
| - paint.setRasterizer(new testrast)->unref();
|
| + TestRastBuilder testRastBuilder;
|
| + paint.setRasterizer(testRastBuilder.detachRasterizer())->unref();
|
| canvas->drawPath(fPath, paint);
|
| }
|
|
|
|
|