Fix transparent ambient shadows
authorJim Van Verth <jvanverth@google.com>
Thu, 11 May 2017 14:43:35 +0000 (10:43 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 11 May 2017 15:09:27 +0000 (15:09 +0000)
commita8b5cf3550fd3d843f075cae6b82cd342e32981b
tree0c7870069ba537514528834076372b0a4c4c41b5
parent1c4c1144c980e672b6744adb3f30e11cb2d54750
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>
src/effects/shadows/SkAmbientShadowMaskFilter.cpp
src/gpu/GrRenderTargetContext.cpp
src/gpu/GrRenderTargetContext.h
src/gpu/effects/GrShadowGeoProc.cpp
src/gpu/ops/GrShadowRRectOp.cpp
src/gpu/ops/GrShadowRRectOp.h