diff options
author | csmartdalton <csmartdalton@google.com> | 2016-08-31 11:55:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-31 11:55:52 -0700 |
commit | 29df76096fd30941086324902a82656df2d8becd (patch) | |
tree | 37740539e50fcdc09d694bc39e98e55aa26cf3f4 /include | |
parent | dc43898bbbd06202562514ae785116e0cc40f825 (diff) |
Define clear regions in terms of GrFixedClip
Updates clear APIs to take GrFixedClip instead of a rectangle. This
will allow us to use window rectangles with clears. Removes stencil
knobs from GrFixedClip.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2262473003
Review-Url: https://codereview.chromium.org/2262473003
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrDrawContext.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h index 29c7d1c12e..cfdb9104d8 100644 --- a/include/gpu/GrDrawContext.h +++ b/include/gpu/GrDrawContext.h @@ -25,6 +25,7 @@ class GrDrawContextPriv; class GrDrawPathBatchBase; class GrDrawingManager; class GrDrawTarget; +class GrFixedClip; class GrPaint; class GrPathProcessor; class GrPipelineBuilder; @@ -353,6 +354,8 @@ private: friend class GrStencilAndCoverPathRenderer; // for access to drawBatch friend class GrTessellatingPathRenderer; // for access to drawBatch + void internalClear(const GrFixedClip&, const GrColor, bool canIgnoreClip); + bool drawFilledDRRect(const GrClip& clip, const GrPaint& paint, const SkMatrix& viewMatrix, |