OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2007 The Android Open Source Project | 3 * Copyright 2007 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkBitmapProcState_DEFINED | 10 #ifndef SkBitmapProcState_DEFINED |
(...skipping 19 matching lines...) Expand all Loading... |
30 #define SkFixedToFractionalInt(x) (x) | 30 #define SkFixedToFractionalInt(x) (x) |
31 #define SkFractionalIntToInt(x) ((x) >> 16) | 31 #define SkFractionalIntToInt(x) ((x) >> 16) |
32 #endif | 32 #endif |
33 | 33 |
34 class SkPaint; | 34 class SkPaint; |
35 struct SkConvolutionProcs; | 35 struct SkConvolutionProcs; |
36 | 36 |
37 struct SkBitmapProcState { | 37 struct SkBitmapProcState { |
38 | 38 |
39 SkBitmapProcState(): fScaledCacheID(NULL), fBitmapFilter(NULL) {} | 39 SkBitmapProcState(): fScaledCacheID(NULL), fBitmapFilter(NULL) {} |
40 ~SkBitmapProcState() { | 40 ~SkBitmapProcState(); |
41 SkASSERT(NULL == fScaledCacheID); | |
42 SkDELETE(fBitmapFilter); | |
43 } | |
44 | 41 |
45 typedef void (*ShaderProc32)(const SkBitmapProcState&, int x, int y, | 42 typedef void (*ShaderProc32)(const SkBitmapProcState&, int x, int y, |
46 SkPMColor[], int count); | 43 SkPMColor[], int count); |
47 | 44 |
48 typedef void (*ShaderProc16)(const SkBitmapProcState&, int x, int y, | 45 typedef void (*ShaderProc16)(const SkBitmapProcState&, int x, int y, |
49 uint16_t[], int count); | 46 uint16_t[], int count); |
50 | 47 |
51 typedef void (*MatrixProc)(const SkBitmapProcState&, | 48 typedef void (*MatrixProc)(const SkBitmapProcState&, |
52 uint32_t bitmapXY[], | 49 uint32_t bitmapXY[], |
53 int count, | 50 int count, |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, | 220 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, |
224 uint32_t xy[], int count, int x, int y); | 221 uint32_t xy[], int count, int x, int y); |
225 void S32_D16_filter_DX(const SkBitmapProcState& s, | 222 void S32_D16_filter_DX(const SkBitmapProcState& s, |
226 const uint32_t* xy, int count, uint16_t* colo
rs); | 223 const uint32_t* xy, int count, uint16_t* colo
rs); |
227 | 224 |
228 void highQualityFilter(const SkBitmapProcState &s, int x, int y, | 225 void highQualityFilter(const SkBitmapProcState &s, int x, int y, |
229 SkPMColor *SK_RESTRICT colors, int count); | 226 SkPMColor *SK_RESTRICT colors, int count); |
230 | 227 |
231 | 228 |
232 #endif | 229 #endif |
OLD | NEW |