commit | 8cfe718e0c1e58262f8ee045d7730821321f16b9 | [log] [tgz] |
---|---|---|
author | Tyler Denniston <tdenniston@google.com> | Thu Apr 29 14:54:25 2021 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Thu Apr 29 19:59:48 2021 +0000 |
tree | 7a5c3f059a4fba9fb19903536bff6eb720731d44 | |
parent | 06c9e2962b4d67d546eb87deafca5541b33aeb64 [diff] [blame] |
[svg] Implement feDiffuseLighting https://www.w3.org/TR/SVG11/filters.html#feDiffuseLightingElement - Add SkSVGFeDiffuseLighting node - Move distant light source direction computation into a method on SkSVGFeDistantLight - Implement distant and point light sources for feDiffuseLighting Bug: skia:10841 Change-Id: I74b8b9e04be5d2c5ac9f912d015dce96367040a1 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/402645 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Tyler Denniston <tdenniston@google.com>
diff --git a/modules/svg/include/SkSVGFeLightSource.h b/modules/svg/include/SkSVGFeLightSource.h index 75f0074..643c150 100644 --- a/modules/svg/include/SkSVGFeLightSource.h +++ b/modules/svg/include/SkSVGFeLightSource.h
@@ -8,6 +8,7 @@ #ifndef SkSVGFeLightSource_DEFINED #define SkSVGFeLightSource_DEFINED +#include "include/core/SkPoint3.h" #include "modules/svg/include/SkSVGHiddenContainer.h" #include "modules/svg/include/SkSVGTypes.h" @@ -30,6 +31,8 @@ return sk_sp<SkSVGFeDistantLight>(new SkSVGFeDistantLight()); } + SkPoint3 computeDirection() const; + SVG_ATTR(Azimuth , SkSVGNumberType, 0) SVG_ATTR(Elevation, SkSVGNumberType, 0)