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

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

Issue 1296183004: Try again to put SkXfermode_opts in SK_OPTS_NS (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix 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 | « no previous file | src/opts/SkOpts_neon.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 "SkOnce.h" 8 #include "SkOnce.h"
9 #include "SkOpts.h" 9 #include "SkOpts.h"
10 10
(...skipping 20 matching lines...) Expand all
31 #endif 31 #endif
32 32
33 namespace SkOpts { 33 namespace SkOpts {
34 // Define default function pointer values here... 34 // Define default function pointer values here...
35 // If our global compile options are set high enough, these defaults might e ven be 35 // If our global compile options are set high enough, these defaults might e ven be
36 // CPU-specialized, e.g. a typical x86-64 machine might start with SSE2 defa ults. 36 // CPU-specialized, e.g. a typical x86-64 machine might start with SSE2 defa ults.
37 // They'll still get a chance to be replaced with even better ones, e.g. usi ng SSE4.1. 37 // They'll still get a chance to be replaced with even better ones, e.g. usi ng SSE4.1.
38 decltype(rsqrt) rsqrt = sk_default::rsqrt; 38 decltype(rsqrt) rsqrt = sk_default::rsqrt;
39 decltype(memset16) memset16 = sk_default::memset16; 39 decltype(memset16) memset16 = sk_default::memset16;
40 decltype(memset32) memset32 = sk_default::memset32; 40 decltype(memset32) memset32 = sk_default::memset32;
41 decltype(create_xfermode) create_xfermode = SkCreate4pxXfermode; 41 decltype(create_xfermode) create_xfermode = sk_default::create_xfermode;
42 decltype(color_cube_filter_span) color_cube_filter_span = sk_default::color_ cube_filter_span; 42 decltype(color_cube_filter_span) color_cube_filter_span = sk_default::color_ cube_filter_span;
43 43
44 decltype(box_blur_xx) box_blur_xx = sk_default::box_blur_xx; 44 decltype(box_blur_xx) box_blur_xx = sk_default::box_blur_xx;
45 decltype(box_blur_xy) box_blur_xy = sk_default::box_blur_xy; 45 decltype(box_blur_xy) box_blur_xy = sk_default::box_blur_xy;
46 decltype(box_blur_yx) box_blur_yx = sk_default::box_blur_yx; 46 decltype(box_blur_yx) box_blur_yx = sk_default::box_blur_yx;
47 47
48 decltype(dilate_x) dilate_x = sk_default::dilate_x; 48 decltype(dilate_x) dilate_x = sk_default::dilate_x;
49 decltype(dilate_y) dilate_y = sk_default::dilate_y; 49 decltype(dilate_y) dilate_y = sk_default::dilate_y;
50 decltype( erode_x) erode_x = sk_default::erode_x; 50 decltype( erode_x) erode_x = sk_default::erode_x;
51 decltype( erode_y) erode_y = sk_default::erode_y; 51 decltype( erode_y) erode_y = sk_default::erode_y;
(...skipping 23 matching lines...) Expand all
75 75
76 SK_DECLARE_STATIC_ONCE(gInitOnce); 76 SK_DECLARE_STATIC_ONCE(gInitOnce);
77 void Init() { SkOnce(&gInitOnce, init); } 77 void Init() { SkOnce(&gInitOnce, init); }
78 78
79 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 79 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
80 static struct AutoInit { 80 static struct AutoInit {
81 AutoInit() { Init(); } 81 AutoInit() { Init(); }
82 } gAutoInit; 82 } gAutoInit;
83 #endif 83 #endif
84 } 84 }
OLDNEW
« no previous file with comments | « no previous file | src/opts/SkOpts_neon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698