Index: src/gpu/GrClipMaskManager.h |
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h |
index 005830c1a78861ff626cbc35186c5819b4835c12..90352f4621060eb42290bb9b50f4ff6ef2b41307 100644 |
--- a/src/gpu/GrClipMaskManager.h |
+++ b/src/gpu/GrClipMaskManager.h |
@@ -87,10 +87,13 @@ private: |
}; |
// Attempts to install a series of coverage effects to implement the clip. Return indicates |
- // whether the element list was successfully converted to effects. |
- const GrFragmentProcessor* getAnalyticClipProcessor(const GrReducedClip::ElementList&, |
- const SkVector& clipOffset, |
- const SkRect* devBounds); |
+ // whether the element list was successfully converted to processors. *fp may be nullptr even |
+ // when the function succeeds because all the elements were ignored. TODO: Make clip reduction |
+ // bounds-aware and stop checking bounds in this function. |
+ bool getAnalyticClipProcessor(const GrReducedClip::ElementList&, |
+ SkVector& clipOffset, |
+ const SkRect* devBounds, |
+ const GrFragmentProcessor** fp); |
// Draws the clip into the stencil buffer |
bool createStencilClipMask(GrRenderTarget*, |