10 #ifndef SkMaskFilter_DEFINED
11 #define SkMaskFilter_DEFINED
13 #include "SkBlurTypes.h"
14 #include "SkFlattenable.h"
17 #include "SkStrokeRec.h"
21 class GrRenderTargetContext;
23 class GrFragmentProcessor;
25 class GrResourceProvider;
109 virtual bool canFilterMaskGPU(
const SkRRect& devRRect,
118 virtual bool directFilterMaskGPU(
GrContext*,
119 GrRenderTargetContext* renderTargetContext,
124 const SkPath& path)
const;
129 virtual bool directFilterRRectMaskGPU(
GrContext*,
130 GrRenderTargetContext* renderTargetContext,
136 const SkRRect& devRRect)
const;
148 const SkIRect& maskRect)
const;
162 virtual void computeFastBounds(
const SkRect& src,
SkRect* dest)
const;
167 SkBlurQuality fQuality;
174 virtual bool asABlur(
BlurRec*)
const;
176 SK_TO_STRING_PUREVIRT()
185 kUnimplemented_FilterReturn
196 SkCachedData* fCache;
214 virtual FilterReturn filterRectsToNine(
const SkRect[],
int count,
221 virtual FilterReturn filterRRectToNine(
const SkRRect&,
const SkMatrix&,
233 bool filterPath(
const SkPath& devPath,
const SkMatrix& ctm,
const SkRasterClip&, SkBlitter*,
234 SkStrokeRec::InitStyle)
const;
240 bool filterRRect(
const SkRRect& devRRect,
const SkMatrix& ctm,
const SkRasterClip&,
Definition: SkMaskFilter.h:164
The SkRRect class represents a rounded rect with a potentially different radii for each corner...
Definition: SkRRect.h:47
The SkPath class encapsulates compound (multiple contour) geometric paths consisting of straight line...
Definition: SkPath.h:25
Definition: SkStrokeRec.h:16
The SkMatrix class holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:28
Definition: SkRefCnt.h:125
SkMask is used to describe alpha bitmaps, either 1bit, 8bit, or the 3-channel 3D format.
Definition: SkMask.h:19
SkFlattenable is the base class for objects that need to be flattened into a data stream for either t...
Definition: SkFlattenable.h:70
The SkBitmap class specifies a raster bitmap.
Definition: SkBitmap.h:37
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:246
virtual bool asFragmentProcessor(GrFragmentProcessor **) const
Returns true if the filter can be expressed a single-pass GrProcessor without requiring an explicit i...
Definition: SkMaskFilter.h:81
SkMaskFilter is the base class for object that perform transformations on an alpha-channel mask befor...
Definition: SkMaskFilter.h:47
Definition: GrContext.h:47
Format
Definition: SkMask.h:22
Definition: SkMaskFilter.h:188
GrRenderTarget represents a 2D buffer of pixels that can be rendered to.
Definition: GrRenderTarget.h:26
SkIRect holds four 32 bit integer coordinates for a rectangle.
Definition: SkRect.h:20
Definition: GrTexture.h:19
SkIPoint holds two 32 bit integer coordinates.
Definition: SkPoint.h:40