aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrClipStackClip.h
diff options
context:
space:
mode:
authorGravatar csmartdalton <csmartdalton@google.com>2016-08-08 09:55:06 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-08 09:55:06 -0700
commit77f2fae49ec969f0771921f1c1886c12289c7bfe (patch)
tree55a1383dc7e7874e7f0dc66a0d6a13933ff195d1 /src/gpu/GrClipStackClip.h
parent0652baa23ec2ea9e1bcdf686bf1e1118b186b42c (diff)
Encapsulate GrReducedClip result in class members
Updates GrReducedClip to store its result in class members instead of various pointer arguments. This helps clean up calling code and will make it easier to reduce the clip higher in the stack. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2222873002 Review-Url: https://codereview.chromium.org/2222873002
Diffstat (limited to 'src/gpu/GrClipStackClip.h')
-rw-r--r--src/gpu/GrClipStackClip.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/gpu/GrClipStackClip.h b/src/gpu/GrClipStackClip.h
index 38f9e2d671..aaa2f90e3a 100644
--- a/src/gpu/GrClipStackClip.h
+++ b/src/gpu/GrClipStackClip.h
@@ -52,28 +52,19 @@ private:
// Draws the clip into the stencil buffer
static bool CreateStencilClipMask(GrContext*,
GrDrawContext*,
- int32_t elementsGenID,
- GrReducedClip::InitialState initialState,
- const GrReducedClip::ElementList& elements,
- const SkIRect& clipSpaceIBounds,
+ const GrReducedClip&,
const SkIPoint& clipSpaceToStencilOffset);
// Creates an alpha mask of the clip. The mask is a rasterization of elements through the
// rect specified by clipSpaceIBounds.
static sk_sp<GrTexture> CreateAlphaClipMask(GrContext*,
- int32_t elementsGenID,
- GrReducedClip::InitialState initialState,
- const GrReducedClip::ElementList& elements,
- const SkVector& clipToMaskOffset,
- const SkIRect& clipSpaceIBounds);
+ const GrReducedClip&,
+ const SkVector& clipToMaskOffset);
// Similar to createAlphaClipMask but it rasterizes in SW and uploads to the result texture.
static sk_sp<GrTexture> CreateSoftwareClipMask(GrTextureProvider*,
- int32_t elementsGenID,
- GrReducedClip::InitialState initialState,
- const GrReducedClip::ElementList& elements,
- const SkVector& clipToMaskOffset,
- const SkIRect& clipSpaceIBounds);
+ const GrReducedClip&,
+ const SkVector& clipToMaskOffset);
static bool UseSWOnlyPath(GrContext*,
bool hasUserStencilSettings,