OLD | NEW |
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 |
(...skipping 15 matching lines...) Expand all Loading... |
26 // Returns a fast approximation of 1.0f/sqrtf(x). | 26 // Returns a fast approximation of 1.0f/sqrtf(x). |
27 extern float (*rsqrt)(float); | 27 extern float (*rsqrt)(float); |
28 | 28 |
29 // See SkUtils.h | 29 // See SkUtils.h |
30 extern void (*memset16)(uint16_t[], uint16_t, int); | 30 extern void (*memset16)(uint16_t[], uint16_t, int); |
31 extern void (*memset32)(uint32_t[], uint32_t, int); | 31 extern void (*memset32)(uint32_t[], uint32_t, int); |
32 | 32 |
33 // May return nullptr if we haven't specialized the given Mode. | 33 // May return nullptr if we haven't specialized the given Mode. |
34 extern SkXfermode* (*create_xfermode)(const ProcCoeff&, SkXfermode::Mode); | 34 extern SkXfermode* (*create_xfermode)(const ProcCoeff&, SkXfermode::Mode); |
35 | 35 |
36 typedef void (*BoxBlur)(const SkPMColor*, int, const SkIRect& srcBounds, SkP
MColor*, int, int, int, int, int); | 36 typedef void (*BoxBlur)(const SkPMColor*, int, SkPMColor*, int, int, int, in
t, int); |
37 extern BoxBlur box_blur_xx, box_blur_xy, box_blur_yx; | 37 extern BoxBlur box_blur_xx, box_blur_xy, box_blur_yx; |
38 | 38 |
39 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int)
; | 39 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int)
; |
40 extern Morph dilate_x, dilate_y, erode_x, erode_y; | 40 extern Morph dilate_x, dilate_y, erode_x, erode_y; |
41 | 41 |
42 typedef bool (*TextureCompressor)(uint8_t* dst, const uint8_t* src, | 42 typedef bool (*TextureCompressor)(uint8_t* dst, const uint8_t* src, |
43 int width, int height, size_t rowBytes); | 43 int width, int height, size_t rowBytes); |
44 extern TextureCompressor (*texture_compressor)(SkColorType, SkTextureCompres
sor::Format); | 44 extern TextureCompressor (*texture_compressor)(SkColorType, SkTextureCompres
sor::Format); |
45 extern bool (*fill_block_dimensions)(SkTextureCompressor::Format, int* x, in
t* y); | 45 extern bool (*fill_block_dimensions)(SkTextureCompressor::Format, int* x, in
t* y); |
46 | 46 |
47 extern void (*blit_mask_d32_a8)(SkPMColor*, size_t, const SkAlpha*, size_t,
SkColor, int, int); | 47 extern void (*blit_mask_d32_a8)(SkPMColor*, size_t, const SkAlpha*, size_t,
SkColor, int, int); |
48 extern void (*blit_row_color32)(SkPMColor*, const SkPMColor*, int, SkPMColor
); | 48 extern void (*blit_row_color32)(SkPMColor*, const SkPMColor*, int, SkPMColor
); |
49 | 49 |
50 // This function is an optimized version of SkColorCubeFilter::filterSpan | 50 // This function is an optimized version of SkColorCubeFilter::filterSpan |
51 extern void (*color_cube_filter_span)(const SkPMColor[], | 51 extern void (*color_cube_filter_span)(const SkPMColor[], |
52 int, | 52 int, |
53 SkPMColor[], | 53 SkPMColor[], |
54 const int * [2], | 54 const int * [2], |
55 const SkScalar * [2], | 55 const SkScalar * [2], |
56 int, | 56 int, |
57 const SkColor*); | 57 const SkColor*); |
58 | 58 |
59 extern SkMatrix::MapPtsProc matrix_translate, matrix_scale_translate, matrix
_affine; | 59 extern SkMatrix::MapPtsProc matrix_translate, matrix_scale_translate, matrix
_affine; |
60 } | 60 } |
61 | 61 |
62 #endif//SkOpts_DEFINED | 62 #endif//SkOpts_DEFINED |
OLD | NEW |