Implement the clip as 4 or fewer GrEffects when possible.
BUG=skia:2181
R=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/188693008
git-svn-id: http://skia.googlecode.com/svn/trunk@13710 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h
index 3d34fb9..1732910 100644
--- a/src/gpu/GrClipMaskManager.h
+++ b/src/gpu/GrClipMaskManager.h
@@ -105,6 +105,13 @@
GrClipMaskCache fAACache; // cache for the AA path
+ // Attempts to install a series of coverage effects to implement the clip. Return indicates
+ // whether the element list was successfully converted to effects.
+ bool installClipEffects(const GrReducedClip::ElementList&,
+ GrDrawState::AutoRestoreEffects*,
+ const SkVector& clipOffset,
+ const SkRect* devBounds);
+
// Draws the clip into the stencil buffer
bool createStencilClipMask(int32_t elementsGenID,
GrReducedClip::InitialState initialState,