diff options
author | 2014-01-23 18:48:56 +0000 | |
---|---|---|
committer | 2014-01-23 18:48:56 +0000 | |
commit | 1878a44c7490e3312a3b617fa03d2cf297b791e0 (patch) | |
tree | 7b5eb35d99dffc3c55ba1eec6da01a21097673db /src/opts/SkMorphology_opts.h | |
parent | 76d4d04b18a773061559533a3b774a82ddc94d0f (diff) |
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@13155 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/opts/SkMorphology_opts.h')
-rw-r--r-- | src/opts/SkMorphology_opts.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/opts/SkMorphology_opts.h b/src/opts/SkMorphology_opts.h index 7ea7c54623..e3ad853cf6 100644 --- a/src/opts/SkMorphology_opts.h +++ b/src/opts/SkMorphology_opts.h @@ -5,10 +5,17 @@ * found in the LICENSE file. */ -#ifndef SkMorphology_opts_DEFINED -#define SkMorphology_opts_DEFINED +#include <SkColor.h> -#include <SkMorphologyImageFilter.h> +/** + * All morphology procs have the same signature: src is the source buffer, dst the + * destination buffer, radius is the morphology radius, width and height are the bounds + * of the destination buffer (in pixels), and srcStride and dstStride are the + * number of pixels per row in each buffer. All buffers are 8888. + */ + +typedef void (*SkMorphologyProc)(const SkPMColor* src, SkPMColor* dst, int radius, + int width, int height, int srcStride, int dstStride); enum SkMorphologyProcType { kDilateX_SkMorphologyProcType, @@ -17,6 +24,4 @@ enum SkMorphologyProcType { kErodeY_SkMorphologyProcType }; -SkMorphologyImageFilter::Proc SkMorphologyGetPlatformProc(SkMorphologyProcType type); - -#endif +SkMorphologyProc SkMorphologyGetPlatformProc(SkMorphologyProcType type); |