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

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

Issue 1629503002: Revert of de-proc sk_float_rsqrt (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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/core/SkOpts.h ('k') | src/opts/SkFloatingPoint_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 "SkOnce.h" 8 #include "SkOnce.h"
9 #include "SkOpts.h" 9 #include "SkOpts.h"
10 10
11 #define SK_OPTS_NS sk_default 11 #define SK_OPTS_NS sk_default
12 #include "SkBlitMask_opts.h" 12 #include "SkBlitMask_opts.h"
13 #include "SkBlitRow_opts.h" 13 #include "SkBlitRow_opts.h"
14 #include "SkBlurImageFilter_opts.h" 14 #include "SkBlurImageFilter_opts.h"
15 #include "SkColorCubeFilter_opts.h" 15 #include "SkColorCubeFilter_opts.h"
16 #include "SkFloatingPoint_opts.h"
16 #include "SkMatrix_opts.h" 17 #include "SkMatrix_opts.h"
17 #include "SkMorphologyImageFilter_opts.h" 18 #include "SkMorphologyImageFilter_opts.h"
18 #include "SkSwizzler_opts.h" 19 #include "SkSwizzler_opts.h"
19 #include "SkTextureCompressor_opts.h" 20 #include "SkTextureCompressor_opts.h"
20 #include "SkUtils_opts.h" 21 #include "SkUtils_opts.h"
21 #include "SkXfermode_opts.h" 22 #include "SkXfermode_opts.h"
22 23
23 #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS) 24 #if defined(SK_CPU_X86) && !defined(SK_BUILD_FOR_IOS)
24 #if defined(SK_BUILD_FOR_WIN32) 25 #if defined(SK_BUILD_FOR_WIN32)
25 #include <intrin.h> 26 #include <intrin.h>
(...skipping 21 matching lines...) Expand all
47 defined(SK_BUILD_FOR_ANDROID) && \ 48 defined(SK_BUILD_FOR_ANDROID) && \
48 !defined(SK_BUILD_FOR_ANDROID_FRAMEWORK) 49 !defined(SK_BUILD_FOR_ANDROID_FRAMEWORK)
49 #include <cpu-features.h> 50 #include <cpu-features.h>
50 #endif 51 #endif
51 52
52 namespace SkOpts { 53 namespace SkOpts {
53 // Define default function pointer values here... 54 // Define default function pointer values here...
54 // If our global compile options are set high enough, these defaults might e ven be 55 // If our global compile options are set high enough, these defaults might e ven be
55 // CPU-specialized, e.g. a typical x86-64 machine might start with SSE2 defa ults. 56 // CPU-specialized, e.g. a typical x86-64 machine might start with SSE2 defa ults.
56 // They'll still get a chance to be replaced with even better ones, e.g. usi ng SSE4.1. 57 // They'll still get a chance to be replaced with even better ones, e.g. usi ng SSE4.1.
58 decltype(rsqrt) rsqrt = sk_default::rsqrt;
57 decltype(memset16) memset16 = sk_default::memset16; 59 decltype(memset16) memset16 = sk_default::memset16;
58 decltype(memset32) memset32 = sk_default::memset32; 60 decltype(memset32) memset32 = sk_default::memset32;
59 decltype(create_xfermode) create_xfermode = sk_default::create_xfermode; 61 decltype(create_xfermode) create_xfermode = sk_default::create_xfermode;
60 decltype(color_cube_filter_span) color_cube_filter_span = sk_default::color_ cube_filter_span; 62 decltype(color_cube_filter_span) color_cube_filter_span = sk_default::color_ cube_filter_span;
61 63
62 decltype(box_blur_xx) box_blur_xx = sk_default::box_blur_xx; 64 decltype(box_blur_xx) box_blur_xx = sk_default::box_blur_xx;
63 decltype(box_blur_xy) box_blur_xy = sk_default::box_blur_xy; 65 decltype(box_blur_xy) box_blur_xy = sk_default::box_blur_xy;
64 decltype(box_blur_yx) box_blur_yx = sk_default::box_blur_yx; 66 decltype(box_blur_yx) box_blur_yx = sk_default::box_blur_yx;
65 67
66 decltype(dilate_x) dilate_x = sk_default::dilate_x; 68 decltype(dilate_x) dilate_x = sk_default::dilate_x;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 123
122 SK_DECLARE_STATIC_ONCE(gInitOnce); 124 SK_DECLARE_STATIC_ONCE(gInitOnce);
123 void Init() { SkOnce(&gInitOnce, init); } 125 void Init() { SkOnce(&gInitOnce, init); }
124 126
125 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 127 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
126 static struct AutoInit { 128 static struct AutoInit {
127 AutoInit() { Init(); } 129 AutoInit() { Init(); }
128 } gAutoInit; 130 } gAutoInit;
129 #endif 131 #endif
130 } 132 }
OLDNEW
« no previous file with comments | « src/core/SkOpts.h ('k') | src/opts/SkFloatingPoint_opts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698