Index: src/opts/SkMorphology_opts.h |
diff --git a/src/opts/SkMorphology_opts.h b/src/opts/SkMorphology_opts.h |
index e3ad853cf64472f2eaa527a3f6a37d7245376bb7..d5e8fe6d7932d50183e7ce043908915a8c78be2c 100644 |
--- a/src/opts/SkMorphology_opts.h |
+++ b/src/opts/SkMorphology_opts.h |
@@ -5,23 +5,12 @@ |
* found in the LICENSE file. |
*/ |
-#include <SkColor.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. |
- */ |
+#ifndef SkMorphology_opts_DEFINED |
+#define SkMorphology_opts_DEFINED |
-typedef void (*SkMorphologyProc)(const SkPMColor* src, SkPMColor* dst, int radius, |
- int width, int height, int srcStride, int dstStride); |
- |
-enum SkMorphologyProcType { |
- kDilateX_SkMorphologyProcType, |
- kDilateY_SkMorphologyProcType, |
- kErodeX_SkMorphologyProcType, |
- kErodeY_SkMorphologyProcType |
-}; |
+#include <SkColor.h> |
+#include <SkMorphologyImageFilter.h> |
SkMorphologyProc SkMorphologyGetPlatformProc(SkMorphologyProcType type); |
+ |
+#endif |