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

Side by Side Diff: src/core/SkOpts.cpp

Issue 2500113004: Port convolve functions to SkOpts (Closed)
Patch Set: Fix typo Created 4 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 unified diff | Download patch
« no previous file with comments | « src/core/SkOpts.h ('k') | src/opts/SkBitmapFilter_opts.h » ('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 "SkCpu.h" 8 #include "SkCpu.h"
9 #include "SkHalf.h" 9 #include "SkHalf.h"
10 #include "SkOnce.h" 10 #include "SkOnce.h"
(...skipping 18 matching lines...) Expand all
29 #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE3 29 #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE3
30 #define SK_OPTS_NS sse3 30 #define SK_OPTS_NS sse3
31 #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2 31 #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2
32 #define SK_OPTS_NS sse2 32 #define SK_OPTS_NS sse2
33 #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1 33 #elif SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE1
34 #define SK_OPTS_NS sse 34 #define SK_OPTS_NS sse
35 #else 35 #else
36 #define SK_OPTS_NS portable 36 #define SK_OPTS_NS portable
37 #endif 37 #endif
38 38
39 #include "SkBitmapFilter_opts.h"
39 #include "SkBlend_opts.h" 40 #include "SkBlend_opts.h"
40 #include "SkBlitMask_opts.h" 41 #include "SkBlitMask_opts.h"
41 #include "SkBlitRow_opts.h" 42 #include "SkBlitRow_opts.h"
42 #include "SkBlurImageFilter_opts.h" 43 #include "SkBlurImageFilter_opts.h"
43 #include "SkChecksum_opts.h" 44 #include "SkChecksum_opts.h"
44 #include "SkColorCubeFilter_opts.h" 45 #include "SkColorCubeFilter_opts.h"
45 #include "SkMorphologyImageFilter_opts.h" 46 #include "SkMorphologyImageFilter_opts.h"
46 #include "SkRasterPipeline_opts.h" 47 #include "SkRasterPipeline_opts.h"
47 #include "SkSwizzler_opts.h" 48 #include "SkSwizzler_opts.h"
48 #include "SkTextureCompressor_opts.h" 49 #include "SkTextureCompressor_opts.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 DEFINE_DEFAULT(grayA_to_RGBA); 84 DEFINE_DEFAULT(grayA_to_RGBA);
84 DEFINE_DEFAULT(grayA_to_rgbA); 85 DEFINE_DEFAULT(grayA_to_rgbA);
85 DEFINE_DEFAULT(inverted_CMYK_to_RGB1); 86 DEFINE_DEFAULT(inverted_CMYK_to_RGB1);
86 DEFINE_DEFAULT(inverted_CMYK_to_BGR1); 87 DEFINE_DEFAULT(inverted_CMYK_to_BGR1);
87 88
88 DEFINE_DEFAULT(srcover_srgb_srgb); 89 DEFINE_DEFAULT(srcover_srgb_srgb);
89 90
90 DEFINE_DEFAULT(hash_fn); 91 DEFINE_DEFAULT(hash_fn);
91 92
92 DEFINE_DEFAULT(compile_pipeline); 93 DEFINE_DEFAULT(compile_pipeline);
94
95 DEFINE_DEFAULT(convolve_vertically);
96 DEFINE_DEFAULT(convolve_horizontally);
97 DEFINE_DEFAULT(convolve_4_rows_horizontally);
98
93 #undef DEFINE_DEFAULT 99 #undef DEFINE_DEFAULT
94 100
95 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp. 101 // Each Init_foo() is defined in src/opts/SkOpts_foo.cpp.
96 void Init_ssse3(); 102 void Init_ssse3();
97 void Init_sse41(); 103 void Init_sse41();
98 void Init_sse42(); 104 void Init_sse42();
99 void Init_avx(); 105 void Init_avx();
100 void Init_hsw(); 106 void Init_hsw();
101 void Init_crc32(); 107 void Init_crc32();
102 108
(...skipping 11 matching lines...) Expand all
114 120
115 #endif 121 #endif
116 #endif 122 #endif
117 } 123 }
118 124
119 void Init() { 125 void Init() {
120 static SkOnce once; 126 static SkOnce once;
121 once(init); 127 once(init);
122 } 128 }
123 } // namespace SkOpts 129 } // namespace SkOpts
OLDNEW
« no previous file with comments | « src/core/SkOpts.h ('k') | src/opts/SkBitmapFilter_opts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698