aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-04-05 16:21:47 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-06 12:53:21 +0000
commit93b1b4feda10c50ce10763ddf7e807f9b85c7953 (patch)
tree313b8b5e462fbc5b0662cd9771e8273e93fa0781 /tools
parente78b7259c3d5cbed77b4390150cfb699b0b59cd4 (diff)
add guard for obsolete (non-functioning) replayClips
replayClips has been disabled (broken) for a while. This CL just attempts to hide the api (will remove once android's callsite is removed) Bug: skia: Change-Id: I35b412addfc0a08ea888a62609888b9b54dce2a6 Reviewed-on: https://skia-review.googlesource.com/11401 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/debugger/SkDebugCanvas.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/debugger/SkDebugCanvas.cpp b/tools/debugger/SkDebugCanvas.cpp
index 2d7d040c27..90627266db 100644
--- a/tools/debugger/SkDebugCanvas.cpp
+++ b/tools/debugger/SkDebugCanvas.cpp
@@ -149,6 +149,7 @@ 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) {}
@@ -181,6 +182,7 @@ protected:
private:
typedef SkCanvas::ClipVisitor INHERITED;
};
+#endif
// set up the saveLayer commands so that the active ones
// return true in their 'active' method
@@ -288,6 +290,7 @@ void SkDebugCanvas::drawTo(SkCanvas* originalCanvas, int index, int m) {
filterCanvas.restore();
}
+#ifdef SK_SUPPORT_OBSOLETE_REPLAYCLIP
if (fMegaVizMode) {
filterCanvas.save();
// nuke the CTM
@@ -305,6 +308,7 @@ void SkDebugCanvas::drawTo(SkCanvas* originalCanvas, int index, int m) {
filterCanvas.restore();
}
+#endif
if (pathOpsMode) {
this->resetClipStackData();
const SkClipStack* clipStack = nullptr;//HACK filterCanvas.getClipStack();