diff options
author | bsalomon <bsalomon@google.com> | 2016-07-08 03:28:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-08 03:28:34 -0700 |
commit | 00ee2a8482e1b910658606d1643324634ffc1ed0 (patch) | |
tree | 05f0a6cd2f33020a499e0872f973e84361b866d6 /src/gpu/GrReducedClip.h | |
parent | e930459a18ea099859f7d0076802458be00a6b4c (diff) |
Make all parameters reqiured to GrReducedClip::ReduceClipStack
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2130903002
Review-Url: https://codereview.chromium.org/2130903002
Diffstat (limited to 'src/gpu/GrReducedClip.h')
-rw-r--r-- | src/gpu/GrReducedClip.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/gpu/GrReducedClip.h b/src/gpu/GrReducedClip.h index 3a7c173d5e..da0bae6bfc 100644 --- a/src/gpu/GrReducedClip.h +++ b/src/gpu/GrReducedClip.h @@ -26,24 +26,19 @@ public: * full stack to the rectangle. The clip stack generation id that represents * the list of elements is returned in resultGenID. The initial state of the * query rectangle before the first clip element is applied is returned via - * initialState. Optionally, the caller can request a tighter bounds on the - * clip be returned via tighterBounds. If not nullptr, tighterBounds will - * always be contained by queryBounds after return. If tighterBounds is - * specified then it is assumed that the caller will implicitly clip against - * it. If the caller specifies non-nullptr for requiresAA then it will indicate - * whether anti-aliasing is required to process any of the elements in the - * result. - * - * This may become a member function of SkClipStack when its interface is - * determined to be stable. + * initialState. The reducer output tighterBounds is a tighter bounds on the + * clip. tighterBounds will always be contained by queryBounds after return. + * It is assumed that the caller will not draw outside of tighterBounds. + * The requiresAA output will indicate whether anti-aliasing is required to + * process any of the elements in the element list result. */ static void ReduceClipStack(const SkClipStack& stack, const SkIRect& queryBounds, ElementList* result, int32_t* resultGenID, InitialState* initialState, - SkIRect* tighterBounds = nullptr, - bool* requiresAA = nullptr); + SkIRect* tighterBounds, + bool* requiresAA); }; #endif |