Convert GrAppliedClip interface to builder style
authorcsmartdalton <csmartdalton@google.com>
Mon, 15 Aug 2016 18:17:19 +0000 (11:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 15 Aug 2016 18:17:19 +0000 (11:17 -0700)
commitd211e7875d9d564f075f664d9f402e1fed6dd90c
treee6ea3720badcff1e5b4eb1af613cd5928d189d2d
parent3fe0327585f32ea2b9334965d8c90d9d699c584e
Convert GrAppliedClip interface to builder style

GrAppliedClip was about at its limit for how many "make" functions it
could have. Window rectangles would push it over the edge. This change
makes it so GrDrawTarget supplies the original draw bounds to the
constructor, and then GrClip adds the various required clipping
techniques.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2246113002

Review-Url: https://codereview.chromium.org/2246113002
include/gpu/GrClip.h
include/gpu/GrTypesPriv.h
src/gpu/GrClip.cpp
src/gpu/GrClipStackClip.cpp
src/gpu/GrClipStackClip.h
src/gpu/GrDrawTarget.cpp
src/gpu/GrReducedClip.cpp
src/gpu/GrReducedClip.h
tests/ClipStackTest.cpp