Flutter Engine
The Flutter Engine
third_party
skia
src
core
SkMaskBlurFilter.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017 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 SkMaskBlurFilter_DEFINED
9
#define SkMaskBlurFilter_DEFINED
10
11
#include <algorithm>
12
#include <memory>
13
#include <tuple>
14
15
#include "
include/core/SkTypes.h
"
16
#include "
src/core/SkMask.h
"
17
18
// Implement a single channel Gaussian blur. The specifics for implementation are taken from:
19
// https://drafts.fxtf.org/filters/#feGaussianBlurElement
20
class
SkMaskBlurFilter
{
21
public
:
22
// Create an object suitable for filtering an SkMask using a filter with width sigmaW and
23
// height sigmaH.
24
SkMaskBlurFilter
(
double
sigmaW,
double
sigmaH);
25
26
// returns true iff the sigmas will result in an identity mask (no blurring)
27
bool
hasNoBlur
()
const
;
28
29
// Given a src SkMask, generate dst SkMask returning the border width and height.
30
SkIPoint
blur
(
const
SkMask
&
src
,
SkMaskBuilder
*
dst
)
const
;
31
32
private
:
33
const
double
fSigmaW;
34
const
double
fSigmaH;
35
};
36
37
#endif
// SkBlurMaskFilter_DEFINED
SkMask.h
SkTypes.h
SkMaskBlurFilter
Definition:
SkMaskBlurFilter.h:20
SkMaskBlurFilter::blur
SkIPoint blur(const SkMask &src, SkMaskBuilder *dst) const
Definition:
SkMaskBlurFilter.cpp:955
SkMaskBlurFilter::SkMaskBlurFilter
SkMaskBlurFilter(double sigmaW, double sigmaH)
Definition:
SkMaskBlurFilter.cpp:254
SkMaskBlurFilter::hasNoBlur
bool hasNoBlur() const
Definition:
SkMaskBlurFilter.cpp:262
gn.cp.dst
dst
Definition:
cp.py:12
mskp_parser.src
src
Definition:
mskp_parser.py:22
SkIPoint
Definition:
SkPoint_impl.h:28
SkMaskBuilder
Definition:
SkMask.h:219
SkMask
Definition:
SkMask.h:25
Generated on Sun Jun 23 2024 21:56:12 for Flutter Engine by
1.9.4