aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SamplePathEffects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SamplePathEffects.cpp')
-rw-r--r--samplecode/SamplePathEffects.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/samplecode/SamplePathEffects.cpp b/samplecode/SamplePathEffects.cpp
index 3d9ba9cb36..5d80e5a08d 100644
--- a/samplecode/SamplePathEffects.cpp
+++ b/samplecode/SamplePathEffects.cpp
@@ -67,21 +67,6 @@ static sk_sp<SkPathEffect> make_warp_pe(SkScalar phase) {
///////////////////////////////////////////////////////////
#include "SkColorFilter.h"
-#include "SkLayerRasterizer.h"
-
-class TestRastBuilder : public SkLayerRasterizer::Builder {
-public:
- TestRastBuilder() {
- SkPaint paint;
- paint.setAntiAlias(true);
-
- paint.setAlpha(0x66);
- this->addLayer(paint, SkIntToScalar(4), SkIntToScalar(4));
-
- paint.setAlpha(0xFF);
- this->addLayer(paint);
- }
-};
class PathEffectView : public SampleView {
SkPath fPath;
@@ -151,8 +136,6 @@ protected:
paint.setARGB(0xFF, 0, 0, 0);
paint.setPathEffect(make_warp_pe(fPhase));
- TestRastBuilder testRastBuilder;
- paint.setRasterizer(testRastBuilder.detach());
canvas->drawPath(fPath, paint);
}