aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetContext.h
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2017-05-11 10:43:35 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-11 15:09:27 +0000
commita8b5cf3550fd3d843f075cae6b82cd342e32981b (patch)
tree0c7870069ba537514528834076372b0a4c4c41b5 /src/gpu/GrRenderTargetContext.h
parent1c4c1144c980e672b6744adb3f30e11cb2d54750 (diff)
Fix transparent ambient shadows
Add a clamp value to indicate the percentage of the blurWidth to apply. Change-Id: I962dc57ed786fa67ed1606b1148f1b2c568025e5 Reviewed-on: https://skia-review.googlesource.com/16424 Commit-Queue: Jim Van Verth <jvanverth@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContext.h')
-rw-r--r--src/gpu/GrRenderTargetContext.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/GrRenderTargetContext.h b/src/gpu/GrRenderTargetContext.h
index b3ff137919..5aef96a65b 100644
--- a/src/gpu/GrRenderTargetContext.h
+++ b/src/gpu/GrRenderTargetContext.h
@@ -161,13 +161,15 @@ public:
* @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.
+ * @param blurClamp Optional parameter used to indicate fraction of blur to actually apply
*/
void drawShadowRRect(const GrClip&,
GrPaint&&,
const SkMatrix& viewMatrix,
const SkRRect& rrect,
SkScalar blurRadius,
- SkScalar insetWidth);
+ SkScalar insetWidth,
+ SkScalar blurClamp = 1);
/**
* Shortcut for filling a SkPath consisting of nested rrects using a paint. The result is