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

Side by Side Diff: src/opts/SkOpts_sse2.cpp

Issue 1267343004: Port morphology to SkOpts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « src/opts/SkOpts_neon.cpp ('k') | src/opts/SkOpts_sse41.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkOpts.h" 8 #include "SkOpts.h"
9 9
10 #define SK_OPTS_NS sse2 10 #define SK_OPTS_NS sse2
11 #include "SkBlurImageFilter_opts.h" 11 #include "SkBlurImageFilter_opts.h"
12 #include "SkMorphologyImageFilter_opts.h"
12 #include "SkUtils_opts.h" 13 #include "SkUtils_opts.h"
13 #include "SkXfermode_opts.h" 14 #include "SkXfermode_opts.h"
14 15
15 namespace SkOpts { 16 namespace SkOpts {
16 void Init_sse2() { 17 void Init_sse2() {
17 memset16 = sse2::memset16; 18 memset16 = sse2::memset16;
18 memset32 = sse2::memset32; 19 memset32 = sse2::memset32;
19 create_xfermode = SkCreate4pxXfermode; 20 create_xfermode = SkCreate4pxXfermode;
20 21
21 static const auto x = sse2::kX, y = sse2::kY; 22 box_blur_xx = sse2::box_blur_xx;
22 box_blur_xx = sse2::box_blur<x,x>; 23 box_blur_xy = sse2::box_blur_xy;
23 box_blur_xy = sse2::box_blur<x,y>; 24 box_blur_yx = sse2::box_blur_yx;
24 box_blur_yx = sse2::box_blur<y,x>; 25
26 dilate_x = sse2::dilate_x;
27 dilate_y = sse2::dilate_y;
28 erode_x = sse2::erode_x;
29 erode_y = sse2::erode_y;
25 } 30 }
26 } 31 }
OLDNEW
« no previous file with comments | « src/opts/SkOpts_neon.cpp ('k') | src/opts/SkOpts_sse41.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698