diff options
Diffstat (limited to 'src/gpu/GrRenderTargetContextPriv.h')
-rw-r--r-- | src/gpu/GrRenderTargetContextPriv.h | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/gpu/GrRenderTargetContextPriv.h b/src/gpu/GrRenderTargetContextPriv.h index 52f5497603..94d52debcf 100644 --- a/src/gpu/GrRenderTargetContextPriv.h +++ b/src/gpu/GrRenderTargetContextPriv.h @@ -23,24 +23,11 @@ struct GrUserStencilSettings; additional data members or virtual methods. */ class GrRenderTargetContextPriv { public: - // called to note the last clip drawn to the stencil buffer. - // TODO: remove after clipping overhaul. - void setLastClip(uint32_t clipStackGenID, const SkIRect& devClipBounds, - int numClipAnalyticFPs) { - GrRenderTargetOpList* opList = fRenderTargetContext->getRTOpList(); - opList->fLastClipStackGenID = clipStackGenID; - opList->fLastDevClipBounds = devClipBounds; - opList->fLastClipNumAnalyticFPs = numClipAnalyticFPs; + const GrUniqueKey& lastStencilClipKey() const { + return fRenderTargetContext->getRTOpList()->lastStencilClipKey(); } - - // called to determine if we have to render the clip into SB. - // TODO: remove after clipping overhaul. - bool mustRenderClip(uint32_t clipStackGenID, const SkIRect& devClipBounds, - int numClipAnalyticFPs) const { - GrRenderTargetOpList* opList = fRenderTargetContext->getRTOpList(); - return opList->fLastClipStackGenID != clipStackGenID || - !opList->fLastDevClipBounds.contains(devClipBounds) || - opList->fLastClipNumAnalyticFPs != numClipAnalyticFPs; + void setLastStencilClipKey(const GrUniqueKey& key) { + fRenderTargetContext->getRTOpList()->setLastStencilClipKey(key); } using CanClearFullscreen = GrRenderTargetContext::CanClearFullscreen; |