diff options
author | Robert Phillips <robertphillips@google.com> | 2017-06-28 15:23:59 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-28 21:20:32 +0000 |
commit | 806be2d50160f540293d9dda13636b63fdfdc47b (patch) | |
tree | 4bdc457cd3a0ec360ace068032316720e59ff582 /src/gpu/GrRenderTargetContextPriv.h | |
parent | cf3dc299b9505a9bd6180c48c86af98f2d703d2a (diff) |
Improve handling of clip stack ID
Change-Id: I1d5cf06d9b50c370f969a8778181fe94f7d35844
Reviewed-on: https://skia-review.googlesource.com/21061
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContextPriv.h')
-rw-r--r-- | src/gpu/GrRenderTargetContextPriv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrRenderTargetContextPriv.h b/src/gpu/GrRenderTargetContextPriv.h index 3312a8fb2d..ed1b40bf96 100644 --- a/src/gpu/GrRenderTargetContextPriv.h +++ b/src/gpu/GrRenderTargetContextPriv.h @@ -27,7 +27,7 @@ public: // called to note the last clip drawn to the stencil buffer. // TODO: remove after clipping overhaul. - void setLastClip(int32_t clipStackGenID, const SkIRect& devClipBounds) { + void setLastClip(uint32_t clipStackGenID, const SkIRect& devClipBounds) { GrRenderTargetOpList* opList = fRenderTargetContext->getRTOpList(); opList->fLastClipStackGenID = clipStackGenID; opList->fLastDevClipBounds = devClipBounds; @@ -35,7 +35,7 @@ public: // called to determine if we have to render the clip into SB. // TODO: remove after clipping overhaul. - bool mustRenderClip(int32_t clipStackGenID, const SkIRect& devClipBounds) const { + bool mustRenderClip(uint32_t clipStackGenID, const SkIRect& devClipBounds) const { GrRenderTargetOpList* opList = fRenderTargetContext->getRTOpList(); return opList->fLastClipStackGenID != clipStackGenID || !opList->fLastDevClipBounds.contains(devClipBounds); |