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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int)
; | 38 typedef void (*Morph)(const SkPMColor*, SkPMColor*, int, int, int, int, int)
; |
39 extern Morph dilate_x, dilate_y, erode_x, erode_y; | 39 extern Morph dilate_x, dilate_y, erode_x, erode_y; |
40 | 40 |
41 typedef bool (*TextureCompressor)(uint8_t* dst, const uint8_t* src, | 41 typedef bool (*TextureCompressor)(uint8_t* dst, const uint8_t* src, |
42 int width, int height, size_t rowBytes); | 42 int width, int height, size_t rowBytes); |
43 extern TextureCompressor (*texture_compressor)(SkColorType, SkTextureCompres
sor::Format); | 43 extern TextureCompressor (*texture_compressor)(SkColorType, SkTextureCompres
sor::Format); |
44 extern bool (*fill_block_dimensions)(SkTextureCompressor::Format, int* x, in
t* y); | 44 extern bool (*fill_block_dimensions)(SkTextureCompressor::Format, int* x, in
t* y); |
45 | 45 |
46 extern void (*blit_mask_d32_a8)(SkPMColor*, size_t, const SkAlpha*, size_t,
SkColor, int, int); | 46 extern void (*blit_mask_d32_a8)(SkPMColor*, size_t, const SkAlpha*, size_t,
SkColor, int, int); |
| 47 |
| 48 // This function is an optimized version of SkColorCubeFilter::filterSpan |
| 49 extern void (*color_cube_filter_span)(const SkPMColor[], |
| 50 int, |
| 51 SkPMColor[], |
| 52 const int * [2], |
| 53 const SkScalar * [2], |
| 54 int, |
| 55 const SkColor*); |
47 } | 56 } |
48 | 57 |
49 #endif//SkOpts_DEFINED | 58 #endif//SkOpts_DEFINED |
OLD | NEW |