Flutter Engine
The Flutter Engine
SkSVGMask.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 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 SkSVGMask_DEFINED
9#define SkSVGMask_DEFINED
10
13
15public:
17 return sk_sp<SkSVGMask>(new SkSVGMask());
18 }
19
24
29
30private:
31 friend class SkSVGRenderContext;
32
34
35 bool parseAndSetAttribute(const char*, const char*) override;
36
37 SkRect bounds(const SkSVGRenderContext&) const;
38 void renderMask(const SkSVGRenderContext&) const;
39
41};
42
43#endif // SkSVGMask_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< SkSVGMask > Make()
Definition: SkSVGMask.h:16
virtual bool parseAndSetAttribute(const char *name, const char *value)
Definition: SkSVGNode.cpp:90
Optional< SkRect > bounds
Definition: SkRecords.h:189