| Index: src/gpu/GrStencilAttachment.h
|
| diff --git a/src/gpu/GrStencilAttachment.h b/src/gpu/GrStencilAttachment.h
|
| index 0ed3c8b27cab92b32b275c087e524466c604b1b5..08d6799f62391519617d46e421ecf2cf4c4192a2 100644
|
| --- a/src/gpu/GrStencilAttachment.h
|
| +++ b/src/gpu/GrStencilAttachment.h
|
| @@ -28,24 +28,6 @@ public:
|
| int bits() const { return fBits; }
|
| int numSamples() const { return fSampleCnt; }
|
|
|
| - // called to note the last clip drawn to this buffer.
|
| - void setLastClip(int32_t clipStackGenID,
|
| - const SkIRect& clipSpaceRect,
|
| - const SkIPoint clipOrigin) {
|
| - fLastClipStackGenID = clipStackGenID;
|
| - fLastClipStackRect = clipSpaceRect;
|
| - fLastClipOrigin = clipOrigin;
|
| - }
|
| -
|
| - // called to determine if we have to render the clip into SB.
|
| - bool mustRenderClip(int32_t clipStackGenID,
|
| - const SkIRect& clipSpaceRect,
|
| - const SkIPoint& clipOrigin) const {
|
| - return fLastClipStackGenID != clipStackGenID ||
|
| - fLastClipOrigin != clipOrigin ||
|
| - !fLastClipStackRect.contains(clipSpaceRect);
|
| - }
|
| -
|
| // We create a unique stencil buffer at each width, height and sampleCnt and share it for
|
| // all render targets that require a stencil with those params.
|
| static void ComputeSharedStencilAttachmentKey(int width, int height, int sampleCnt,
|
| @@ -57,9 +39,7 @@ protected:
|
| , fWidth(width)
|
| , fHeight(height)
|
| , fBits(bits)
|
| - , fSampleCnt(sampleCnt)
|
| - , fLastClipStackGenID(SkClipStack::kInvalidGenID) {
|
| - fLastClipStackRect.setEmpty();
|
| + , fSampleCnt(sampleCnt) {
|
| }
|
|
|
| private:
|
| @@ -69,10 +49,6 @@ private:
|
| int fBits;
|
| int fSampleCnt;
|
|
|
| - int32_t fLastClipStackGenID;
|
| - SkIRect fLastClipStackRect;
|
| - SkIPoint fLastClipOrigin;
|
| -
|
| typedef GrGpuResource INHERITED;
|
| };
|
|
|
|
|