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

Unified Diff: src/opts/SkBlurImage_opts_SSE2.h

Issue 61643011: SSE2 implementation of RGBA box blurs. This yields ~2X perf improvement on (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Add another missing file. Created 7 years, 1 month 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/SkBlurImage_opts_SSE2.h
diff --git a/src/opts/SkBlurImage_opts_SSE2.h b/src/opts/SkBlurImage_opts_SSE2.h
new file mode 100644
index 0000000000000000000000000000000000000000..518157ef7d2849b9b4b6618e65b12812a126d538
--- /dev/null
+++ b/src/opts/SkBlurImage_opts_SSE2.h
@@ -0,0 +1,13 @@
+/*
+ * 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 "SkColorPriv.h"
+#include "SkBlurImage_opts.h"
+
+template <SkBlurDirection srcDirection, SkBlurDirection dstDirection>
mtklein 2013/11/08 02:17:59 Okay, this breaks my brain / whole model of templa
Stephen White 2013/11/08 15:47:47 Yes, this is explicit template instantiation. If I
mtklein 2013/11/08 18:42:33 Thanks, that helps. I guess what still surprises
+void SkBoxBlur_SSE2(const SkPMColor* src, int srcStride, SkPMColor* dst, int kernelSize,
+ int leftOffset, int rightOffset, int width, int height);

Powered by Google App Engine
This is Rietveld 408576698