Flutter Engine
The Flutter Engine
third_party
skia
include
effects
SkBlurMaskFilter.h
Go to the documentation of this file.
1
/*
2
* Copyright 2006 The Android Open Source Project
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 SkBlurMaskFilter_DEFINED
9
#define SkBlurMaskFilter_DEFINED
10
11
// we include this since our callers will need to at least be able to ref/unref
12
#include "
include/core/SkBlurTypes.h
"
13
#include "
include/core/SkMaskFilter.h
"
14
#include "
include/core/SkRect.h
"
15
#include "
include/core/SkScalar.h
"
16
17
class
SkRRect
;
18
19
class
SK_API
SkBlurMaskFilter
{
20
public
:
21
#ifdef SK_SUPPORT_LEGACY_EMBOSSMASKFILTER
22
/** Create an emboss maskfilter
23
@param blurSigma standard deviation of the Gaussian blur to apply
24
before applying lighting (e.g. 3)
25
@param direction array of 3 scalars [x, y, z] specifying the direction of the light source
26
@param ambient 0...1 amount of ambient light
27
@param specular coefficient for specular highlights (e.g. 8)
28
@return the emboss maskfilter
29
*/
30
static
sk_sp<SkMaskFilter>
MakeEmboss(
SkScalar
blurSigma,
const
SkScalar
direction[3],
31
SkScalar
ambient,
SkScalar
specular);
32
#endif
33
};
34
35
#endif
SK_API
#define SK_API
Definition:
SkAPI.h:35
SkBlurTypes.h
SkMaskFilter.h
SkRect.h
SkScalar.h
SkBlurMaskFilter
Definition:
SkBlurMaskFilter.h:19
SkRRect
Definition:
SkRRect.h:35
sk_sp< SkMaskFilter >
SkScalar
float SkScalar
Definition:
extension.cpp:12
Generated on Sun Jun 23 2024 21:56:02 for Flutter Engine by
1.9.4