mirror of
https://github.com/thead-yocto-mirror/skia
synced 2026-06-21 08:52:36 +02:00
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
/*
|
|
* 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 "include/core/SkBlurTypes.h"
|
|
#include "include/core/SkMaskFilter.h"
|
|
#include "include/core/SkRect.h"
|
|
#include "include/core/SkScalar.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
|