Index: samplecode/ClockFaceView.cpp |
diff --git a/samplecode/ClockFaceView.cpp b/samplecode/ClockFaceView.cpp |
index 4717c30d9e921fb09c87eec6be50d8e21a17db68..9a1f8f97fbb80d586bb25d50591b110aeb193d23 100644 |
--- a/samplecode/ClockFaceView.cpp |
+++ b/samplecode/ClockFaceView.cpp |
@@ -104,7 +104,7 @@ private: |
SkFlattenable* Dot2DPathEffect::CreateProc(SkReadBuffer& buffer) { |
SkMatrix matrix; |
buffer.readMatrix(&matrix); |
- return SkNEW_ARGS(Dot2DPathEffect, (buffer.readScalar(), matrix, NULL)); |
+ return new Dot2DPathEffect(buffer.readScalar(), matrix, NULL); |
} |
class InverseFillPE : public SkPathEffect { |
@@ -129,9 +129,7 @@ private: |
typedef SkPathEffect INHERITED; |
}; |
-SkFlattenable* InverseFillPE::CreateProc(SkReadBuffer& buffer) { |
- return SkNEW(InverseFillPE); |
-} |
+SkFlattenable* InverseFillPE::CreateProc(SkReadBuffer& buffer) { return new InverseFillPE; } |
static SkPathEffect* makepe(float interp, SkTDArray<SkPoint>* pts) { |
SkMatrix lattice; |