Index: src/utils/debugger/SkDebugCanvas.cpp |
diff --git a/src/utils/debugger/SkDebugCanvas.cpp b/src/utils/debugger/SkDebugCanvas.cpp |
index 6251c1b7a19a132432bf03059f1805b781e3272a..5ce906754621471fa3cf5186747d755feb4f1939 100644 |
--- a/src/utils/debugger/SkDebugCanvas.cpp |
+++ b/src/utils/debugger/SkDebugCanvas.cpp |
@@ -58,12 +58,15 @@ public: |
class DebugPaintFilterCanvas : public SkPaintFilterCanvas { |
public: |
- DebugPaintFilterCanvas(int width, int height, bool overdrawViz, bool overrideFilterQuality, |
+ DebugPaintFilterCanvas(int width, |
+ int height, |
+ bool overdrawViz, |
+ bool overrideFilterQuality, |
SkFilterQuality quality) |
: INHERITED(width, height) |
- , fOverdrawXfermode(overdrawViz ? SkNEW(OverdrawXfermode) : NULL) |
+ , fOverdrawXfermode(overdrawViz ? new OverdrawXfermode : NULL) |
, fOverrideFilterQuality(overrideFilterQuality) |
- , fFilterQuality(quality) { } |
+ , fFilterQuality(quality) {} |
protected: |
void onFilterPaint(SkPaint* paint, Type) const override { |
@@ -361,11 +364,8 @@ void SkDebugCanvas::updatePaintFilterCanvas() { |
} |
const SkImageInfo info = this->imageInfo(); |
- fPaintFilterCanvas.reset(SkNEW_ARGS(DebugPaintFilterCanvas, (info.width(), |
- info.height(), |
- fOverdrawViz, |
- fOverrideFilterQuality, |
- fFilterQuality))); |
+ fPaintFilterCanvas.reset(new DebugPaintFilterCanvas(info.width(), info.height(), fOverdrawViz, |
+ fOverrideFilterQuality, fFilterQuality)); |
} |
void SkDebugCanvas::setOverdrawViz(bool overdrawViz) { |