Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: src/opts/SkMorphology_opts.h

Issue 135013004: Refactor SkMorphologyImageFilter, CPU and GPU paths. This required making opts/ dependent on effect… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Remove a stray "virtual". Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« include/effects/SkMorphologyImageFilter.h ('K') | « src/effects/SkMorphologyImageFilter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698