blob: 4347e2490eddc42de3f4471d9d6336c885094e54 [file] [log] [blame]
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrBlurUtils_DEFINED
#define GrBlurUtils_DEFINED
#include "include/private/GrTypesPriv.h"
class GrClip;
class GrPaint;
class GrRecordingContext;
class GrRenderTarget;
class GrSurfaceDrawContext;
class GrStyledShape;
class GrStyle;
struct SkIRect;
class SkMatrixProvider;
class SkMaskFilter;
class SkMatrix;
class SkPaint;
class SkPath;
class SkPathEffect;
/**
* Blur utilities.
*/
namespace GrBlurUtils {
/**
* Draw a shape handling the mask filter if present.
*/
void drawShapeWithMaskFilter(GrRecordingContext*,
GrSurfaceDrawContext*,
const GrClip*,
const SkPaint&,
const SkMatrixProvider&,
const GrStyledShape&);
/**
* Draw a shape handling the mask filter. The mask filter is not optional.
* The GrPaint will be modified after return.
*/
void drawShapeWithMaskFilter(GrRecordingContext*,
GrSurfaceDrawContext*,
const GrClip*,
const GrStyledShape&,
GrPaint&&,
const SkMatrix& viewMatrix,
const SkMaskFilter*);
} // namespace GrBlurUtils
#endif