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 22 matching lines...) Expand all Loading... |
33 #endif | 33 #endif |
34 | 34 |
35 class SkPaint; | 35 class SkPaint; |
36 struct SkConvolutionProcs; | 36 struct SkConvolutionProcs; |
37 | 37 |
38 struct SkBitmapProcState { | 38 struct SkBitmapProcState { |
39 | 39 |
40 SkBitmapProcState(): fScaledCacheID(NULL), fBitmapFilter(NULL) {} | 40 SkBitmapProcState(): fScaledCacheID(NULL), fBitmapFilter(NULL) {} |
41 ~SkBitmapProcState(); | 41 ~SkBitmapProcState(); |
42 | 42 |
| 43 SkBitmapProcState(const SkBitmapProcState& src); |
| 44 |
43 typedef void (*ShaderProc32)(const SkBitmapProcState&, int x, int y, | 45 typedef void (*ShaderProc32)(const SkBitmapProcState&, int x, int y, |
44 SkPMColor[], int count); | 46 SkPMColor[], int count); |
45 | 47 |
46 typedef void (*ShaderProc16)(const SkBitmapProcState&, int x, int y, | 48 typedef void (*ShaderProc16)(const SkBitmapProcState&, int x, int y, |
47 uint16_t[], int count); | 49 uint16_t[], int count); |
48 | 50 |
49 typedef void (*MatrixProc)(const SkBitmapProcState&, | 51 typedef void (*MatrixProc)(const SkBitmapProcState&, |
50 uint32_t bitmapXY[], | 52 uint32_t bitmapXY[], |
51 int count, | 53 int count, |
52 int x, int y); | 54 int x, int y); |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 void S32_D16_filter_DX(const SkBitmapProcState& s, | 231 void S32_D16_filter_DX(const SkBitmapProcState& s, |
230 const uint32_t* xy, int count, uint16_t* colors); | 232 const uint32_t* xy, int count, uint16_t* colors); |
231 | 233 |
232 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, | 234 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, |
233 SkPMColor *SK_RESTRICT colors, int count); | 235 SkPMColor *SK_RESTRICT colors, int count); |
234 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, | 236 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, |
235 uint16_t *SK_RESTRICT colors, int count); | 237 uint16_t *SK_RESTRICT colors, int count); |
236 | 238 |
237 | 239 |
238 #endif | 240 #endif |
OLD | NEW |