aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2018-01-18 15:19:13 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-19 16:32:13 +0000
commitb1b80f7de4224c5083dfc1475e1988b2ce839a65 (patch)
treed33690051752b46e396f76a96851cb38910dc923 /bench
parent8bad7e01bac9a1e692eca7dafd1adf3eb1761628 (diff)
Remove tonal color from DrawShadow internals
Bug: b/71719631 Change-Id: I676c34dfe5ea9b5e184ea53dd49a8b835d4e8cb6 Reviewed-on: https://skia-review.googlesource.com/95741 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'bench')
-rwxr-xr-xbench/ShadowBench.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/bench/ShadowBench.cpp b/bench/ShadowBench.cpp
index f329664fb2..e454abd3a4 100755
--- a/bench/ShadowBench.cpp
+++ b/bench/ShadowBench.cpp
@@ -65,9 +65,8 @@ protected:
fRec.fZPlaneParams = SkPoint3::Make(0, 0, kElevation);
fRec.fLightPos = SkPoint3::Make(270, 0, 600);
fRec.fLightRadius = 800;
- fRec.fAmbientAlpha = 0.1f;
- fRec.fSpotAlpha = 0.25f;
- fRec.fColor = SK_ColorBLACK;
+ fRec.fAmbientColor = 0x19000000;
+ fRec.fSpotColor = 0x40000000;
fRec.fFlags = 0;
if (fTransparent) {
fRec.fFlags |= SkShadowFlags::kTransparentOccluder_ShadowFlag;