diff options
author | Mike Reed <reed@google.com> | 2017-04-13 11:06:30 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-13 15:42:09 +0000 |
commit | 1335a0561e28b97ff4347129c7cc3fdcbf952eb5 (patch) | |
tree | 7c5447b5e2e83c23ca481bb24649d5db178d6201 /tools/debugger | |
parent | 0a4b4100c12844f49f0656e6a3e382e98d906e5f (diff) |
remove dead code around replayClips
Bug: skia:
Change-Id: I208bf41846265524d86f65de660311199fefc158
Reviewed-on: https://skia-review.googlesource.com/13338
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
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(); |