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

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

Issue 1884683002: SkFloatConvert (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 | « src/core/SkHalf.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 extern bool has_f16c;
reed1 2016/04/12 18:47:26 nit: gHas_f16c -- just to make reading it at each
25
24 // Declare function pointers here... 26 // Declare function pointers here...
25 27
26 // May return nullptr if we haven't specialized the given Mode. 28 // May return nullptr if we haven't specialized the given Mode.
27 extern SkXfermode* (*create_xfermode)(const ProcCoeff&, SkXfermode::Mode); 29 extern SkXfermode* (*create_xfermode)(const ProcCoeff&, SkXfermode::Mode);
28 30
29 typedef void (*BoxBlur)(const SkPMColor*, int, const SkIRect& srcBounds, SkP MColor*, int, int, int, int, int); 31 typedef void (*BoxBlur)(const SkPMColor*, int, const SkIRect& srcBounds, SkP MColor*, int, int, int, int, int);
30 extern BoxBlur box_blur_xx, box_blur_xy, box_blur_yx; 32 extern BoxBlur box_blur_xx, box_blur_xy, box_blur_yx;
31 33
32 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int) ; 34 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int) ;
33 extern Morph dilate_x, dilate_y, erode_x, erode_y; 35 extern Morph dilate_x, dilate_y, erode_x, erode_y;
(...skipping 29 matching lines...) Expand all
63 grayA_to_RGBA, // i.e. expand to color channels 65 grayA_to_RGBA, // i.e. expand to color channels
64 grayA_to_rgbA, // i.e. expand to color channels and premultiply 66 grayA_to_rgbA, // i.e. expand to color channels and premultiply
65 inverted_CMYK_to_RGB1, // i.e. convert color space 67 inverted_CMYK_to_RGB1, // i.e. convert color space
66 inverted_CMYK_to_BGR1; // i.e. convert color space 68 inverted_CMYK_to_BGR1; // i.e. convert color space
67 69
68 extern void (*half_to_float)(float[], const uint16_t[], int); 70 extern void (*half_to_float)(float[], const uint16_t[], int);
69 extern void (*float_to_half)(uint16_t[], const float[], int); 71 extern void (*float_to_half)(uint16_t[], const float[], int);
70 } 72 }
71 73
72 #endif//SkOpts_DEFINED 74 #endif//SkOpts_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkHalf.h ('k') | src/core/SkOpts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698