Flutter Engine
The Flutter Engine
SkSVGFilter.h
Go to the documentation of this file.
1/*
2 * Copyright 2020 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkSVGFilter_DEFINED
9#define SkSVGFilter_DEFINED
10
13
15public:
17
18 /** Propagates any inherited presentation attributes in the given context. */
19 void applyProperties(SkSVGRenderContext*) const;
20
21 sk_sp<SkImageFilter> buildFilterDAG(const SkSVGRenderContext&) const;
22
27 SVG_ATTR(FilterUnits,
30 SVG_ATTR(PrimitiveUnits,
33
34private:
36
37 bool parseAndSetAttribute(const char*, const char*) override;
38
40};
41
42#endif // SkSVGFilter_DEFINED
#define SK_API
Definition: SkAPI.h:35
SkSVGTag
Definition: SkSVGNode.h:23
#define SVG_ATTR(attr_name, attr_type, attr_default)
Definition: SkSVGNode.h:210
static const SkScalar Y
Definition: StrokeBench.cpp:55
static const SkScalar X
Definition: StrokeBench.cpp:54
static sk_sp< SkSVGFilter > Make()
Definition: SkSVGFilter.h:16
virtual bool parseAndSetAttribute(const char *name, const char *value)
Definition: SkSVGNode.cpp:90