Skia
2D Graphics Library
SkSVGFeFlood.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 SkSVGFeFlood_DEFINED
9 #define SkSVGFeFlood_DEFINED
10 
13 
14 class SK_API SkSVGFeFlood : public SkSVGFe {
15 public:
17 
18 protected:
20  const SkSVGFilterContext&) const override;
21 
22  std::vector<SkSVGFeInputType> getInputs() const override { return {}; }
23 
24 private:
25  SkSVGFeFlood() : INHERITED(SkSVGTag::kFeFlood) {}
26 
27  SkColor resolveFloodColor(const SkSVGRenderContext&) const;
28 
29  using INHERITED = SkSVGFe;
30 };
31 
32 #endif // SkSVGFeFlood_DEFINED
uint32_t SkColor
32-bit ARGB color value, unpremultiplied.
Definition: SkColor.h:37
SkSVGTag
Definition: SkSVGNode.h:23
Definition: SkSVGFeFlood.h:14
std::vector< SkSVGFeInputType > getInputs() const override
Definition: SkSVGFeFlood.h:22
sk_sp< SkImageFilter > onMakeImageFilter(const SkSVGRenderContext &, const SkSVGFilterContext &) const override
static sk_sp< SkSVGFeFlood > Make()
Definition: SkSVGFeFlood.h:16
Definition: SkSVGFe.h:18
SkSVGFe(SkSVGTag t)
Definition: SkSVGFe.h:65
Definition: SkSVGFilterContext.h:21
Definition: SkSVGRenderContext.h:61
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220