Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: src/gpu/GrStencilAttachment.h

Issue 2468743002: TEMPORARY: track stencil clip state in GrRenderTargetOpList (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrRenderTargetOpList.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « src/gpu/GrRenderTargetOpList.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698