From 93b1b4feda10c50ce10763ddf7e807f9b85c7953 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Wed, 5 Apr 2017 16:21:47 -0400 Subject: 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 Commit-Queue: Mike Reed --- include/core/SkCanvas.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/core') diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 71e45fa369..4c875e8f44 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -21,7 +21,9 @@ class GrContext; class GrRenderTargetContext; class SkBaseDevice; class SkBitmap; +#ifdef SK_SUPPORT_OBSOLETE_REPLAYCLIP class SkCanvasClipVisitor; +#endif class SkClipStack; class SkData; class SkDraw; @@ -1281,6 +1283,7 @@ public: */ const SkMatrix& getTotalMatrix() const; +#ifdef SK_SUPPORT_OBSOLETE_REPLAYCLIP typedef SkCanvasClipVisitor ClipVisitor; /** * Replays the clip operations, back to front, that have been applied to @@ -1288,6 +1291,7 @@ public: * clip. All clips have already been transformed into device space. */ void replayClips(ClipVisitor*) const; +#endif /////////////////////////////////////////////////////////////////////////// @@ -1687,6 +1691,7 @@ private: }; #define SkAutoCanvasRestore(...) SK_REQUIRE_LOCAL_VAR(SkAutoCanvasRestore) +#ifdef SK_SUPPORT_OBSOLETE_REPLAYCLIP class SkCanvasClipVisitor { public: virtual ~SkCanvasClipVisitor(); @@ -1694,5 +1699,6 @@ public: virtual void clipRRect(const SkRRect&, SkClipOp, bool antialias) = 0; virtual void clipPath(const SkPath&, SkClipOp, bool antialias) = 0; }; +#endif #endif -- cgit v1.2.3