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

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

Issue 1639863002: try plain-old code for sk_memset16/32 now that NEON is compile-time (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: for Created 4 years, 10 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 | « include/core/SkUtils.h ('k') | 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 "SkMatrix.h" 11 #include "SkMatrix.h"
12 #include "SkTextureCompressor.h" 12 #include "SkTextureCompressor.h"
13 #include "SkTypes.h" 13 #include "SkTypes.h"
14 #include "SkXfermode.h" 14 #include "SkXfermode.h"
15 15
16 struct ProcCoeff; 16 struct ProcCoeff;
17 17
18 namespace SkOpts { 18 namespace SkOpts {
19 // Call to replace pointers to portable functions with pointers to CPU-speci fic functions. 19 // Call to replace pointers to portable functions with pointers to CPU-speci fic functions.
20 // Thread-safe and idempotent. 20 // Thread-safe and idempotent.
21 // Called by SkGraphics::Init(), and automatically #if SK_ALLOW_STATIC_GLOBA L_INITIALIZERS. 21 // Called by SkGraphics::Init(), and automatically #if SK_ALLOW_STATIC_GLOBA L_INITIALIZERS.
22 void Init(); 22 void Init();
23 23
24 // Declare function pointers here... 24 // Declare function pointers here...
25 25
26 // See SkUtils.h
27 extern void (*memset16)(uint16_t[], uint16_t, int);
28 extern void (*memset32)(uint32_t[], uint32_t, int);
29
30 // May return nullptr if we haven't specialized the given Mode. 26 // May return nullptr if we haven't specialized the given Mode.
31 extern SkXfermode* (*create_xfermode)(const ProcCoeff&, SkXfermode::Mode); 27 extern SkXfermode* (*create_xfermode)(const ProcCoeff&, SkXfermode::Mode);
32 28
33 typedef void (*BoxBlur)(const SkPMColor*, int, const SkIRect& srcBounds, SkP MColor*, int, int, int, int, int); 29 typedef void (*BoxBlur)(const SkPMColor*, int, const SkIRect& srcBounds, SkP MColor*, int, int, int, int, int);
34 extern BoxBlur box_blur_xx, box_blur_xy, box_blur_yx; 30 extern BoxBlur box_blur_xx, box_blur_xy, box_blur_yx;
35 31
36 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int) ; 32 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int) ;
37 extern Morph dilate_x, dilate_y, erode_x, erode_y; 33 extern Morph dilate_x, dilate_y, erode_x, erode_y;
38 34
39 typedef bool (*TextureCompressor)(uint8_t* dst, const uint8_t* src, 35 typedef bool (*TextureCompressor)(uint8_t* dst, const uint8_t* src,
(...skipping 26 matching lines...) Expand all
66 grayA_to_RGBA, // i.e. expand to color channels 62 grayA_to_RGBA, // i.e. expand to color channels
67 grayA_to_rgbA, // i.e. expand to color channels and premultiply 63 grayA_to_rgbA, // i.e. expand to color channels and premultiply
68 inverted_CMYK_to_RGB1, // i.e. convert color space 64 inverted_CMYK_to_RGB1, // i.e. convert color space
69 inverted_CMYK_to_BGR1; // i.e. convert color space 65 inverted_CMYK_to_BGR1; // i.e. convert color space
70 66
71 extern void (*half_to_float)(float[], const uint16_t[], int); 67 extern void (*half_to_float)(float[], const uint16_t[], int);
72 extern void (*float_to_half)(uint16_t[], const float[], int); 68 extern void (*float_to_half)(uint16_t[], const float[], int);
73 } 69 }
74 70
75 #endif//SkOpts_DEFINED 71 #endif//SkOpts_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkUtils.h ('k') | src/core/SkOpts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698