diff options
author | Stan Iliev <stani@google.com> | 2017-08-02 15:36:24 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-02 19:56:07 +0000 |
commit | 73d8fd90653135bb1247f92ebc1d730a40b4f9d5 (patch) | |
tree | 5d13763f33e48082d5d616fd9dea0b06a16bf69c /src/gpu/ops/GrRegionOp.h | |
parent | dcba08e891f1766b047cf0dbe8bbd275d9f55d2b (diff) |
Add a private API for writing the clip to the stencil
Add a private API used by Android framework, which writes the clip
into a stencil buffer. This is used by HWUI to clip the WebView.
Bug: 31489986
Change-Id: I94515f1539acd9d069c8aceb3300577feed9c94f
Reviewed-on: https://skia-review.googlesource.com/29521
Commit-Queue: Stan Iliev <stani@google.com>
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Diffstat (limited to 'src/gpu/ops/GrRegionOp.h')
-rw-r--r-- | src/gpu/ops/GrRegionOp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/ops/GrRegionOp.h b/src/gpu/ops/GrRegionOp.h index bfdad710fa..b74f78c74e 100644 --- a/src/gpu/ops/GrRegionOp.h +++ b/src/gpu/ops/GrRegionOp.h @@ -14,10 +14,12 @@ class GrDrawOp; class SkMatrix; class SkRegion; class GrPaint; +struct GrUserStencilSettings; namespace GrRegionOp { /** GrAAType must be kNone or kMSAA. */ -std::unique_ptr<GrDrawOp> Make(GrPaint&&, const SkMatrix& viewMatrix, const SkRegion&, GrAAType); +std::unique_ptr<GrDrawOp> Make(GrPaint&&, const SkMatrix& viewMatrix, const SkRegion&, GrAAType, + const GrUserStencilSettings* stencilSettings = nullptr); } #endif |