diff options
Diffstat (limited to 'tools/debugger')
-rw-r--r-- | tools/debugger/SkDebugCanvas.cpp | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/tools/debugger/SkDebugCanvas.cpp b/tools/debugger/SkDebugCanvas.cpp index 90627266db..3b84b85934 100644 --- a/tools/debugger/SkDebugCanvas.cpp +++ b/tools/debugger/SkDebugCanvas.cpp @@ -149,41 +149,6 @@ int SkDebugCanvas::getCommandAtPoint(int x, int y, int index) { return layer; } -#ifdef SK_SUPPORT_OBSOLETE_REPLAYCLIP -class SkDebugClipVisitor : public SkCanvas::ClipVisitor { -public: - SkDebugClipVisitor(SkCanvas* canvas) : fCanvas(canvas) {} - - void clipRect(const SkRect& r, SkClipOp, bool doAA) override { - SkPaint p; - p.setColor(SK_ColorRED); - p.setStyle(SkPaint::kStroke_Style); - p.setAntiAlias(doAA); - fCanvas->drawRect(r, p); - } - void clipRRect(const SkRRect& rr, SkClipOp, bool doAA) override { - SkPaint p; - p.setColor(SK_ColorGREEN); - p.setStyle(SkPaint::kStroke_Style); - p.setAntiAlias(doAA); - fCanvas->drawRRect(rr, p); - } - void clipPath(const SkPath& path, SkClipOp, bool doAA) override { - SkPaint p; - p.setColor(SK_ColorBLUE); - p.setStyle(SkPaint::kStroke_Style); - p.setAntiAlias(doAA); - fCanvas->drawPath(path, p); - } - -protected: - SkCanvas* fCanvas; - -private: - typedef SkCanvas::ClipVisitor INHERITED; -}; -#endif - // set up the saveLayer commands so that the active ones // return true in their 'active' method void SkDebugCanvas::markActiveCommands(int index) { @@ -290,25 +255,6 @@ void SkDebugCanvas::drawTo(SkCanvas* originalCanvas, int index, int m) { filterCanvas.restore(); } -#ifdef SK_SUPPORT_OBSOLETE_REPLAYCLIP - if (fMegaVizMode) { - filterCanvas.save(); - // nuke the CTM - filterCanvas.resetMatrix(); - // turn off clipping - if (!windowRect.isEmpty()) { - SkRect r = windowRect; - r.outset(SK_Scalar1, SK_Scalar1); - filterCanvas.clipRect(r, kReplace_SkClipOp); - } - // visualize existing clips - SkDebugClipVisitor visitor(&filterCanvas); - - filterCanvas.replayClips(&visitor); - - filterCanvas.restore(); - } -#endif if (pathOpsMode) { this->resetClipStackData(); const SkClipStack* clipStack = nullptr;//HACK filterCanvas.getClipStack(); |