[svg] Add 'filter' presentation attribute and parsing

Not yet used by anything.

Bug: skia:10841
Change-Id: I6ed0a434cf670d73f06eaf0bbfe70d727ffe4950
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/330617
Commit-Queue: Tyler Denniston <tdenniston@google.com>
Reviewed-by: Florin Malita <fmalita@chromium.org>
diff --git a/modules/svg/src/SkSVGNode.cpp b/modules/svg/src/SkSVGNode.cpp
index 21b5a76..5ca2657 100644
--- a/modules/svg/src/SkSVGNode.cpp
+++ b/modules/svg/src/SkSVGNode.cpp
@@ -173,6 +173,11 @@
             this->setFillRule(*fillRule);
         }
         break;
+    case SkSVGAttribute::kFilter:
+        if (const SkSVGFilterValue* filter = v.as<SkSVGFilterValue>()) {
+            this->setFilter(*filter);
+        }
+        break;
     case SkSVGAttribute::kFontFamily:
         if (const SkSVGFontFamilyValue* family = v.as<SkSVGFontFamilyValue>()) {
             this->setFontFamily(*family);