Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
src
effects
colorfilters
SkGaussianColorFilter.h
Go to the documentation of this file.
1
/*
2
* Copyright 2023 Google LLC
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
#ifndef SkGaussianColorFilter_DEFINED
8
#define SkGaussianColorFilter_DEFINED
9
10
#include "
include/core/SkFlattenable.h
"
11
#include "
include/core/SkTypes.h
"
12
#include "
src/effects/colorfilters/SkColorFilterBase.h
"
13
14
class
SkReadBuffer
;
15
class
SkWriteBuffer
;
16
struct
SkStageRec
;
17
18
/**
19
* Remaps the input color's alpha to a Gaussian ramp and then outputs premul white using the
20
* remapped alpha.
21
*/
22
class
SkGaussianColorFilter
final :
public
SkColorFilterBase
{
23
public
:
24
SkGaussianColorFilter
();
25
26
bool
appendStages
(
const
SkStageRec
& rec,
bool
shaderIsOpaque)
const override
;
27
28
SkColorFilterBase::Type
type
()
const override
{
return
SkColorFilterBase::Type::kGaussian; }
29
30
protected
:
31
void
flatten
(
SkWriteBuffer
&)
const override
{}
32
33
private
:
34
SK_FLATTENABLE_HOOKS
(
SkGaussianColorFilter
)
35
};
36
37
#endif
SkColorFilterBase.h
SkFlattenable.h
SK_FLATTENABLE_HOOKS
#define SK_FLATTENABLE_HOOKS(type)
Definition
SkFlattenable.h:108
SkTypes.h
SkColorFilterBase
Definition
SkColorFilterBase.h:35
SkColorFilterBase::Type
Type
Definition
SkColorFilterBase.h:43
SkGaussianColorFilter
Definition
SkGaussianColorFilter.h:22
SkGaussianColorFilter::flatten
void flatten(SkWriteBuffer &) const override
Definition
SkGaussianColorFilter.h:31
SkGaussianColorFilter::type
SkColorFilterBase::Type type() const override
Definition
SkGaussianColorFilter.h:28
SkGaussianColorFilter::appendStages
bool appendStages(const SkStageRec &rec, bool shaderIsOpaque) const override
Definition
SkGaussianColorFilter.cpp:22
SkGaussianColorFilter::SkGaussianColorFilter
SkGaussianColorFilter()
Definition
SkGaussianColorFilter.cpp:20
SkReadBuffer
Definition
SkReadBuffer.h:52
SkWriteBuffer
Definition
SkWriteBuffer.h:41
SkStageRec
Definition
SkEffectPriv.h:20
Generated on Fri Apr 26 2024 06:16:53 for Flutter Engine by
1.9.8