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
11
#include "
modules/svg/include/SkSVGFe.h
"
12
#include "
modules/svg/include/SkSVGTypes.h
"
13
14
class
SK_API
SkSVGFeFlood
:
public
SkSVGFe
{
15
public
:
16
static
sk_sp<SkSVGFeFlood>
Make
() {
return
sk_sp<SkSVGFeFlood>
(
new
SkSVGFeFlood
()); }
17
18
protected
:
19
sk_sp<SkImageFilter>
onMakeImageFilter
(
const
SkSVGRenderContext
&,
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
SkColor
uint32_t SkColor
32-bit ARGB color value, unpremultiplied.
Definition:
SkColor.h:37
SkSVGFe.h
SkSVGTag
SkSVGTag
Definition:
SkSVGNode.h:23
SkSVGTag::kFeFlood
@ kFeFlood
SkSVGTypes.h
SkSVGFeFlood
Definition:
SkSVGFeFlood.h:14
SkSVGFeFlood::getInputs
std::vector< SkSVGFeInputType > getInputs() const override
Definition:
SkSVGFeFlood.h:22
SkSVGFeFlood::onMakeImageFilter
sk_sp< SkImageFilter > onMakeImageFilter(const SkSVGRenderContext &, const SkSVGFilterContext &) const override
SkSVGFeFlood::Make
static sk_sp< SkSVGFeFlood > Make()
Definition:
SkSVGFeFlood.h:16
SkSVGFe
Definition:
SkSVGFe.h:18
SkSVGFe::SkSVGFe
SkSVGFe(SkSVGTag t)
Definition:
SkSVGFe.h:65
SkSVGFilterContext
Definition:
SkSVGFilterContext.h:21
SkSVGRenderContext
Definition:
SkSVGRenderContext.h:61
sk_sp
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition:
SkRefCnt.h:220
modules
svg
include
SkSVGFeFlood.h
Generated by
Doxygen
1.9.1 on Tue Nov 14 2023