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

Unified Diff: src/core/SkOpts.cpp

Issue 1264103004: Port SkBlurImage opts to SkOpts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rename to match src/effects Created 5 years, 4 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
« no previous file with comments | « src/core/SkOpts.h ('k') | src/effects/SkBlurImageFilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkOpts.cpp
diff --git a/src/core/SkOpts.cpp b/src/core/SkOpts.cpp
index 9ccc66de0840f291ea3182aa97e9ae7efadce4c7..14d28e113b4448a5be2698cd5aa5ed8c4c6c4658 100644
--- a/src/core/SkOpts.cpp
+++ b/src/core/SkOpts.cpp
@@ -7,6 +7,8 @@
#include "SkOnce.h"
#include "SkOpts.h"
+#define SK_OPTS_NS portable
+#include "SkBlurImageFilter_opts.h"
#include "SkXfermode_opts.h"
#if defined(SK_CPU_X86)
@@ -47,6 +49,11 @@ namespace SkOpts {
decltype(memset32) memset32 = portable::memsetT<uint32_t>;
decltype(create_xfermode) create_xfermode = SkCreate4pxXfermode;
+ static const auto x = portable::kX, y = portable::kY;
+ decltype(box_blur_xx) box_blur_xx = portable::box_blur<x,x>;
+ decltype(box_blur_xy) box_blur_xy = portable::box_blur<x,y>;
+ decltype(box_blur_yx) box_blur_yx = portable::box_blur<y,x>;
+
// Each Init_foo() is defined in src/opts/SkOpts_foo.cpp.
void Init_sse2();
void Init_ssse3();
« no previous file with comments | « src/core/SkOpts.h ('k') | src/effects/SkBlurImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698