Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
13
14class SkReadBuffer;
15class SkWriteBuffer;
16struct 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 */
23public:
25
26 bool appendStages(const SkStageRec& rec, bool shaderIsOpaque) const override;
27
28 SkColorFilterBase::Type type() const override { return SkColorFilterBase::Type::kGaussian; }
29
30protected:
31 void flatten(SkWriteBuffer&) const override {}
32
33private:
35};
36
37#endif
#define SK_FLATTENABLE_HOOKS(type)
void flatten(SkWriteBuffer &) const override
SkColorFilterBase::Type type() const override
bool appendStages(const SkStageRec &rec, bool shaderIsOpaque) const override