diff options
author | John Reck <jreck@google.com> | 2017-11-13 16:47:35 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2017-11-13 16:53:48 -0800 |
commit | 3c0369bf0263b1b172932fdbc6a53efb01c965fc (patch) | |
tree | c95bab7d9c6bc49104b7ca30a2344ae4faeab2e7 /libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp | |
parent | ae5eb83a32a2005bd2c872bdf7b0621190ddb062 (diff) |
Create colored shadows demo
Test: HwAccelerationTest demo
Bug: 68211332
Change-Id: Ia53a6ac2854570d0495b355bbebee1dcec2f47ba
Diffstat (limited to 'libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp')
-rw-r--r-- | libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp b/libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp index 67e06022b17c..7b59ccf3eec7 100644 --- a/libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp +++ b/libs/hwui/pipeline/skia/ReorderBarrierDrawables.cpp @@ -189,7 +189,7 @@ void EndReorderBarrierDrawable::drawShadow(SkCanvas* canvas, RenderNodeDrawable* } SkShadowUtils::DrawShadow( canvas, *casterPath, zParams, skiaLightPos, SkiaPipeline::getLightRadius(), - ambientAlpha, spotAlpha, SK_ColorBLACK, + ambientAlpha, spotAlpha, casterProperties.getShadowColor(), casterAlpha < 1.0f ? SkShadowFlags::kTransparentOccluder_ShadowFlag : 0); } |