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

Unified Diff: src/opts/SkMorphology_opts.h

Issue 52603004: Implement SSE2-based implementations of the morphology filters (dilate & (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix the non-SSE2 build. Created 7 years, 2 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
new file mode 100644
index 0000000000000000000000000000000000000000..5084290a00d4e4546b6e1922528e8fd60121a90d
--- /dev/null
+++ b/src/opts/SkMorphology_opts.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2013 The Android Open Source Project
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * 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.
+ */
+
+typedef void (*SkMorphologyProc)(const SkPMColor* src, SkPMColor* dst, int radius,
+ int width, int height, int srcStride, int dstStride);
+
+enum SkMorphologyProcType {
+ SkMorphologyDilateX_Type,
reed1 2013/10/30 20:14:28 bike shed : skia likes to have everything after th
Stephen White 2013/10/30 20:48:06 Done.
+ SkMorphologyDilateY_Type,
+ SkMorphologyErodeX_Type,
+ SkMorphologyErodeY_Type
+};
+
+SkMorphologyProc SkMorphologyGetPlatformProc(SkMorphologyProcType type);

Powered by Google App Engine
This is Rietveld 408576698