diff options
author | 2017-04-05 16:21:47 -0400 | |
---|---|---|
committer | 2017-04-06 12:53:21 +0000 | |
commit | 93b1b4feda10c50ce10763ddf7e807f9b85c7953 (patch) | |
tree | 313b8b5e462fbc5b0662cd9771e8273e93fa0781 /include/core | |
parent | e78b7259c3d5cbed77b4390150cfb699b0b59cd4 (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 'include/core')
-rw-r--r-- | include/core/SkCanvas.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |