aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStencilAttachment.h
diff options
context:
space:
mode:
authorGravatar csmartdalton <csmartdalton@google.com>2016-08-31 12:54:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-31 12:54:46 -0700
commitbde96c6263112de755a2573f6f5f02703386f328 (patch)
tree88e62b72015864164c9a183842ac932dc54b16e1 /src/gpu/GrStencilAttachment.h
parent3d01c62e19df9f369cdfaeff82ec8af2c0be75f1 (diff)
Move clip mask generation into GrReducedClip
This is a temporary solution to facilitate window rectangles and make clip mask generation more accessible for testing. The eventual goal is to simplify clips and merge GrReducedClip into GrClipStackClip. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2263343002 Review-Url: https://codereview.chromium.org/2263343002
Diffstat (limited to 'src/gpu/GrStencilAttachment.h')
-rw-r--r--src/gpu/GrStencilAttachment.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrStencilAttachment.h b/src/gpu/GrStencilAttachment.h
index 8f41b57e21..0ed3c8b27c 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;
};