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

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

Issue 1903503002: Remove static initializer for SkOpts::Init() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/core/SkOpts.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 #ifndef SkOpts_DEFINED 8 #ifndef SkOpts_DEFINED
9 #define SkOpts_DEFINED 9 #define SkOpts_DEFINED
10 10
11 #include "SkTextureCompressor.h" 11 #include "SkTextureCompressor.h"
12 #include "SkTypes.h" 12 #include "SkTypes.h"
13 #include "SkXfermode.h" 13 #include "SkXfermode.h"
14 14
15 struct ProcCoeff; 15 struct ProcCoeff;
16 16
17 namespace SkOpts { 17 namespace SkOpts {
18 // Call to replace pointers to portable functions with pointers to CPU-speci fic functions. 18 // Call to replace pointers to portable functions with pointers to CPU-speci fic functions.
19 // Thread-safe and idempotent. 19 // Thread-safe and idempotent.
20 // Called by SkGraphics::Init(), and automatically #if SK_ALLOW_STATIC_GLOBA L_INITIALIZERS. 20 // Called by SkGraphics::Init().
21 void Init(); 21 void Init();
22 22
23 // Declare function pointers here... 23 // Declare function pointers here...
24 24
25 // May return nullptr if we haven't specialized the given Mode. 25 // May return nullptr if we haven't specialized the given Mode.
26 extern SkXfermode* (*create_xfermode)(const ProcCoeff&, SkXfermode::Mode); 26 extern SkXfermode* (*create_xfermode)(const ProcCoeff&, SkXfermode::Mode);
27 27
28 typedef void (*BoxBlur)(const SkPMColor*, int, const SkIRect& srcBounds, SkP MColor*, int, int, int, int, int); 28 typedef void (*BoxBlur)(const SkPMColor*, int, const SkIRect& srcBounds, SkP MColor*, int, int, int, int, int);
29 extern BoxBlur box_blur_xx, box_blur_xy, box_blur_yx; 29 extern BoxBlur box_blur_xx, box_blur_xy, box_blur_yx;
30 30
(...skipping 29 matching lines...) Expand all
60 grayA_to_RGBA, // i.e. expand to color channels 60 grayA_to_RGBA, // i.e. expand to color channels
61 grayA_to_rgbA, // i.e. expand to color channels and premultiply 61 grayA_to_rgbA, // i.e. expand to color channels and premultiply
62 inverted_CMYK_to_RGB1, // i.e. convert color space 62 inverted_CMYK_to_RGB1, // i.e. convert color space
63 inverted_CMYK_to_BGR1; // i.e. convert color space 63 inverted_CMYK_to_BGR1; // i.e. convert color space
64 64
65 extern void (*half_to_float)(float[], const uint16_t[], int); 65 extern void (*half_to_float)(float[], const uint16_t[], int);
66 extern void (*float_to_half)(uint16_t[], const float[], int); 66 extern void (*float_to_half)(uint16_t[], const float[], int);
67 } 67 }
68 68
69 #endif//SkOpts_DEFINED 69 #endif//SkOpts_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/core/SkOpts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698