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

Unified Diff: src/gpu/GrStencilAttachment.h

Issue 2263343002: Move clip mask generation into GrReducedClip (Closed) Base URL: https://skia.googlesource.com/skia.git@upload2_clipclears
Patch Set: msvc Created 4 years, 4 months 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/GrReducedClip.cpp ('k') | tests/GLProgramsTest.cpp » ('j') | 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 8f41b57e2105901cc00d3a286099a698e55a050f..0ed3c8b27cab92b32b275c087e524466c604b1b5 100644
--- a/src/gpu/GrStencilAttachment.h
+++ b/src/gpu/GrStencilAttachment.h
@@ -31,18 +31,18 @@ public:
// called to note the last clip drawn to this buffer.
void setLastClip(int32_t clipStackGenID,
const SkIRect& clipSpaceRect,
- const SkIPoint clipSpaceToStencilOffset) {
+ const SkIPoint clipOrigin) {
fLastClipStackGenID = clipStackGenID;
fLastClipStackRect = clipSpaceRect;
- fLastClipSpaceOffset = clipSpaceToStencilOffset;
+ fLastClipOrigin = clipOrigin;
}
// called to determine if we have to render the clip into SB.
bool mustRenderClip(int32_t clipStackGenID,
const SkIRect& clipSpaceRect,
- const SkIPoint clipSpaceToStencilOffset) const {
+ const SkIPoint& clipOrigin) const {
return fLastClipStackGenID != clipStackGenID ||
- fLastClipSpaceOffset != clipSpaceToStencilOffset ||
+ fLastClipOrigin != clipOrigin ||
!fLastClipStackRect.contains(clipSpaceRect);
}
@@ -71,7 +71,7 @@ private:
int32_t fLastClipStackGenID;
SkIRect fLastClipStackRect;
- SkIPoint fLastClipSpaceOffset;
+ SkIPoint fLastClipOrigin;
typedef GrGpuResource INHERITED;
};
« no previous file with comments | « src/gpu/GrReducedClip.cpp ('k') | tests/GLProgramsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698