diff options
author | Brian Salomon <bsalomon@google.com> | 2017-03-13 17:57:28 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-13 22:01:06 +0000 |
commit | 9a7677273a3f270e6137d396e972c83c036a47a7 (patch) | |
tree | adbb840ffebb12282ac4a59bba7105ded9838afb /src/gpu/GrRenderTargetContextPriv.h | |
parent | 301c69c9167c9b7f4dd147e27d720f05522fe263 (diff) |
Remove origin from GrClipStackClip and GrWindowRectsState.
Change-Id: I993f426fee0f21cf1f529f58d242de3017253678
Reviewed-on: https://skia-review.googlesource.com/9623
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContextPriv.h')
-rw-r--r-- | src/gpu/GrRenderTargetContextPriv.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/gpu/GrRenderTargetContextPriv.h b/src/gpu/GrRenderTargetContextPriv.h index 430abd0ca2..dcde6088d5 100644 --- a/src/gpu/GrRenderTargetContextPriv.h +++ b/src/gpu/GrRenderTargetContextPriv.h @@ -27,24 +27,18 @@ public: // called to note the last clip drawn to the stencil buffer. // TODO: remove after clipping overhaul. - void setLastClip(int32_t clipStackGenID, - const SkIRect& clipSpaceRect, - const SkIPoint clipOrigin) { + void setLastClip(int32_t clipStackGenID, const SkIRect& devClipBounds) { GrRenderTargetOpList* opList = fRenderTargetContext->getOpList(); opList->fLastClipStackGenID = clipStackGenID; - opList->fLastClipStackRect = clipSpaceRect; - opList->fLastClipOrigin = clipOrigin; + opList->fLastDevClipBounds = devClipBounds; } // called to determine if we have to render the clip into SB. // TODO: remove after clipping overhaul. - bool mustRenderClip(int32_t clipStackGenID, - const SkIRect& clipSpaceRect, - const SkIPoint& clipOrigin) const { + bool mustRenderClip(int32_t clipStackGenID, const SkIRect& devClipBounds) const { GrRenderTargetOpList* opList = fRenderTargetContext->getOpList(); return opList->fLastClipStackGenID != clipStackGenID || - opList->fLastClipOrigin != clipOrigin || - !opList->fLastClipStackRect.contains(clipSpaceRect); + !opList->fLastDevClipBounds.contains(devClipBounds); } void clear(const GrFixedClip&, const GrColor, bool canIgnoreClip); |