diff options
author | 2016-07-27 13:22:27 -0700 | |
---|---|---|
committer | 2016-07-27 13:22:27 -0700 | |
commit | 34ee0c950e1aa24818632084acdb382514f98c08 (patch) | |
tree | a565c69109e84a66b622c0c1a37f882a1762ce2d /include/gpu | |
parent | e772aeea0809c4d3cd6335f3359a5fed10806045 (diff) |
Fix GrDrawContextPriv::stencilRect
Updates stencilRect to call drawNonAAFilledRect instead of
drawFilledRect. drawFilledRect can use coverage AA, which isn't
appropriate for stencil draws. Also modifies drawNonAAFilledRect to
take a "useHWAA" argument instead of trying to deduce whether it
should be used.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2187583002
Review-Url: https://codereview.chromium.org/2187583002
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/GrDrawContext.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h index e305cc1197..948577cffa 100644 --- a/include/gpu/GrDrawContext.h +++ b/include/gpu/GrDrawContext.h @@ -347,7 +347,8 @@ private: const SkRect& rect, const SkRect* localRect, const SkMatrix* localMatrix, - const GrUserStencilSettings* ss); + const GrUserStencilSettings* ss, + bool useHWAA); void internalDrawPath(const GrClip& clip, const GrPaint& paint, |