commit | bd2bbe4a1750166136c7729adb0b48ebd7132b74 | [log] [tgz] |
---|---|---|
author | bsalomon <bsalomon@google.com> | Fri Jul 08 07:36:42 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Jul 08 07:36:42 2016 -0700 |
tree | ac740994d62505f4417574c0447209980f6a0bcd | |
parent | 88cf17d099085b8085ab11571b5094163dbb2c84 [diff] [blame] |
Don't scissor draws overlapping the render target's edges GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2135673002 Review-Url: https://codereview.chromium.org/2135673002
diff --git a/include/gpu/GrClip.h b/include/gpu/GrClip.h index ce0f155..26aab70 100644 --- a/include/gpu/GrClip.h +++ b/include/gpu/GrClip.h
@@ -46,6 +46,12 @@ fHasStencilClip = false; } + void makeScissored(SkIRect& scissor) { + fClipCoverageFP.reset(); + fScissorState.set(scissor); + fHasStencilClip = false; + } + void makeScissoredFPBased(sk_sp<GrFragmentProcessor> fp, SkIRect& scissor) { fClipCoverageFP = fp; fScissorState.set(scissor);