blob: 86e7d12e973fcf10c4f0cb6d574715c19de242ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkBlurMaskFilter_DEFINED
#define SkBlurMaskFilter_DEFINED
// we include this since our callers will need to at least be able to ref/unref
#include "SkMaskFilter.h"
#include "SkRect.h"
#include "SkScalar.h"
#include "SkBlurTypes.h"
class SkRRect;
class SK_API SkBlurMaskFilter {
public:
#ifdef SK_SUPPORT_LEGACY_EMBOSSMASKFILTER
/** Create an emboss maskfilter
@param blurSigma standard deviation of the Gaussian blur to apply
before applying lighting (e.g. 3)
@param direction array of 3 scalars [x, y, z] specifying the direction of the light source
@param ambient 0...1 amount of ambient light
@param specular coefficient for specular highlights (e.g. 8)
@return the emboss maskfilter
*/
static sk_sp<SkMaskFilter> MakeEmboss(SkScalar blurSigma, const SkScalar direction[3],
SkScalar ambient, SkScalar specular);
#endif
};
#endif
|