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

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

Issue 1284333002: Revert of Refactor to put SkXfermode_opts inside SK_OPTS_NS. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/core/SkNx.h ('k') | src/core/SkPMFloat.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
(...skipping 19 matching lines...) Expand all
30 #endif 30 #endif
31 31
32 namespace SkOpts { 32 namespace SkOpts {
33 // Define default function pointer values here... 33 // Define default function pointer values here...
34 // If our global compile options are set high enough, these 'portable' defau lts might 34 // If our global compile options are set high enough, these 'portable' defau lts might
35 // even be CPU-specialized, e.g. a typical x86-64 machine might start with S SE2 defaults. 35 // even be CPU-specialized, e.g. a typical x86-64 machine might start with S SE2 defaults.
36 // They'll still get a chance to be replaced with even better ones, e.g. usi ng SSE4.1. 36 // They'll still get a chance to be replaced with even better ones, e.g. usi ng SSE4.1.
37 decltype(rsqrt) rsqrt = portable::rsqrt; 37 decltype(rsqrt) rsqrt = portable::rsqrt;
38 decltype(memset16) memset16 = portable::memset16; 38 decltype(memset16) memset16 = portable::memset16;
39 decltype(memset32) memset32 = portable::memset32; 39 decltype(memset32) memset32 = portable::memset32;
40 decltype(create_xfermode) create_xfermode = portable::create_xfermode; 40 decltype(create_xfermode) create_xfermode = SkCreate4pxXfermode;
41 41
42 decltype(box_blur_xx) box_blur_xx = portable::box_blur_xx; 42 decltype(box_blur_xx) box_blur_xx = portable::box_blur_xx;
43 decltype(box_blur_xy) box_blur_xy = portable::box_blur_xy; 43 decltype(box_blur_xy) box_blur_xy = portable::box_blur_xy;
44 decltype(box_blur_yx) box_blur_yx = portable::box_blur_yx; 44 decltype(box_blur_yx) box_blur_yx = portable::box_blur_yx;
45 45
46 decltype(dilate_x) dilate_x = portable::dilate_x; 46 decltype(dilate_x) dilate_x = portable::dilate_x;
47 decltype(dilate_y) dilate_y = portable::dilate_y; 47 decltype(dilate_y) dilate_y = portable::dilate_y;
48 decltype( erode_x) erode_x = portable::erode_x; 48 decltype( erode_x) erode_x = portable::erode_x;
49 decltype( erode_y) erode_y = portable::erode_y; 49 decltype( erode_y) erode_y = portable::erode_y;
50 50
(...skipping 26 matching lines...) Expand all
77 77
78 SK_DECLARE_STATIC_ONCE(gInitOnce); 78 SK_DECLARE_STATIC_ONCE(gInitOnce);
79 void Init() { SkOnce(&gInitOnce, init); } 79 void Init() { SkOnce(&gInitOnce, init); }
80 80
81 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 81 #if SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
82 static struct AutoInit { 82 static struct AutoInit {
83 AutoInit() { Init(); } 83 AutoInit() { Init(); }
84 } gAutoInit; 84 } gAutoInit;
85 #endif 85 #endif
86 } 86 }
OLDNEW
« no previous file with comments | « src/core/SkNx.h ('k') | src/core/SkPMFloat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698