8 #ifndef SkMatrixConvolutionImageFilter_DEFINED
9 #define SkMatrixConvolutionImageFilter_DEFINED
11 #include "SkImageFilter.h"
31 kMax_TileMode = kClampToBlack_TileMode
58 const SkScalar* kernel,
65 const CropRect* cropRect =
nullptr);
67 SK_TO_STRING_OVERRIDE()
70 #ifdef SK_SUPPORT_LEGACY_IMAGEFILTER_PTR
72 const SkScalar* kernel,
79 const CropRect* cropRect = NULL) {
80 return Make(kernelSize, kernel, gain, bias, kernelOffset, tileMode, convolveAlpha,
81 sk_ref_sp<SkImageFilter>(input), cropRect).release();
87 const SkScalar* kernel,
94 const CropRect* cropRect);
100 bool affectsTransparentBlack()
const override;
111 template <
class PixelFetcher,
bool convolveAlpha>
112 void filterPixels(
const SkBitmap& src,
116 template <
class PixelFetcher>
117 void filterPixels(
const SkBitmap& src,
121 void filterInteriorPixels(
const SkBitmap& src,
125 void filterBorderPixels(
const SkBitmap& src,
void flatten(SkWriteBuffer &) const override
Override this if your subclass needs to record data that it will need to recreate itself from its Cre...
TileMode
Definition: SkMatrixConvolutionImageFilter.h:27
The SkMatrix class holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:26
virtual sk_sp< SkSpecialImage > onFilterImage(SkSpecialImage *src, const Context &, SkIPoint *offset) const =0
This is the virtual which should be overridden by the derived class to perform image filtering...
Definition: SkMatrixConvolutionImageFilter.h:24
The SkBitmap class specifies a raster bitmap.
Definition: SkBitmap.h:41
Base class for image filters.
Definition: SkImageFilter.h:35
Definition: SkWriteBuffer.h:26
virtual SkIRect onFilterNodeBounds(const SkIRect &, const SkMatrix &, MapDirection) const
Performs a forwards or reverse mapping of the given rect to accommodate this filter's margin requirem...
SkIRect holds four 32 bit integer coordinates for a rectangle.
Definition: SkRect.h:20
Definition: SkMatrixConvolutionImageFilter.h:30
SkIPoint holds two 32 bit integer coordinates.
Definition: SkPoint.h:40
Definition: SkMatrixConvolutionImageFilter.h:29