commit | 32b3089618ab547c0e7c9cc25c25f14c2bee8a6f | [log] [tgz] |
---|---|---|
author | Tyler Denniston <tdenniston@google.com> | Tue Jan 26 14:36:32 2021 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Jan 26 21:36:34 2021 +0000 |
tree | 6fb48c2562c3a2c8901bc5047197bf380d31e516 | |
parent | 578f1acbe8a47178efb21df49561c365226f9d95 [diff] [blame] |
[svg] Add light source classes and lighting-color pres attr https://www.w3.org/TR/SVG11/filters.html#LightSourceDefinitions The three classes represent light source elements that will eventually be used for feSpecularLighting and feDiffuseLighting. Currently they are unused. Also added the (currently unused) lighting-color presentation attribute. Bug: skia:10841 Change-Id: Ic7824671662b8cd88cf627affc54173d5e881b7d Reviewed-on: https://skia-review.googlesource.com/c/skia/+/359557 Commit-Queue: Tyler Denniston <tdenniston@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>
diff --git a/modules/svg/src/SkSVGAttribute.cpp b/modules/svg/src/SkSVGAttribute.cpp index 098dc7b..f636adb 100644 --- a/modules/svg/src/SkSVGAttribute.cpp +++ b/modules/svg/src/SkSVGAttribute.cpp
@@ -40,6 +40,7 @@ result.fStopOpacity.set(SkSVGNumberType(1)); result.fFloodColor.set(SkSVGColor(SK_ColorBLACK)); result.fFloodOpacity.set(SkSVGNumberType(1)); + result.fLightingColor.set(SkSVGColor(SK_ColorWHITE)); return result; }