diff options
author | 2017-05-05 15:53:23 -0400 | |
---|---|---|
committer | 2017-05-05 20:18:13 +0000 | |
commit | 8d1e0ac9989c4caa537930e352bfc2dfe375c69b (patch) | |
tree | f82898be12311ed2b35f4edf38532b19ac464f0e /src/gpu/GrRenderTargetContext.h | |
parent | 22469d9d2caa1dc721e8c15c5f5e7a6b41a9236e (diff) |
More analytic shadow refactoring.
This is mostly to simplify and reduce redundant calculations.
Change-Id: I895bd43fbc9defd812969870c2145f9f19d69a6b
Reviewed-on: https://skia-review.googlesource.com/15462
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContext.h')
-rw-r--r-- | src/gpu/GrRenderTargetContext.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrRenderTargetContext.h b/src/gpu/GrRenderTargetContext.h index dd42db6156..b3ff137919 100644 --- a/src/gpu/GrRenderTargetContext.h +++ b/src/gpu/GrRenderTargetContext.h @@ -158,15 +158,16 @@ public: * @param paint describes how to color pixels. * @param viewMatrix transformation matrix * @param rrect the roundrect to draw - * @param blurRadius amount of shadow blur to apply (in device space) - * @param style style to apply to the rrect. Currently path effects are not allowed. + * @param blurWidth amount of shadow blur to apply (in device space) + * @param insetWidth minimum amount to inset from the rrect edge (in local space). + * We may inset more depending on the blur radius and geometry. */ void drawShadowRRect(const GrClip&, GrPaint&&, const SkMatrix& viewMatrix, const SkRRect& rrect, SkScalar blurRadius, - const GrStyle& style); + SkScalar insetWidth); /** * Shortcut for filling a SkPath consisting of nested rrects using a paint. The result is |