/*
|
* 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
|