OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2007 The Android Open Source Project | 2 * Copyright 2007 The Android Open Source Project |
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 SkBitmapProcState_DEFINED | 8 #ifndef SkBitmapProcState_DEFINED |
9 #define SkBitmapProcState_DEFINED | 9 #define SkBitmapProcState_DEFINED |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 #endif | 36 #endif |
37 } | 37 } |
38 | 38 |
39 class SkPaint; | 39 class SkPaint; |
40 | 40 |
41 struct SkBitmapProcState { | 41 struct SkBitmapProcState { |
42 SkBitmapProcState(const SkBitmapProvider&, SkShader::TileMode tmx, SkShader:
:TileMode tmy); | 42 SkBitmapProcState(const SkBitmapProvider&, SkShader::TileMode tmx, SkShader:
:TileMode tmy); |
43 SkBitmapProcState(const SkBitmap&, SkShader::TileMode tmx, SkShader::TileMod
e tmy); | 43 SkBitmapProcState(const SkBitmap&, SkShader::TileMode tmx, SkShader::TileMod
e tmy); |
44 ~SkBitmapProcState(); | 44 ~SkBitmapProcState(); |
45 | 45 |
46 typedef void (*ShaderProc32)(const void* ctx, int x, int y, SkPMColor[], int
count); | 46 typedef void (*ShaderProc32)(const SkBitmapProcState&, int x, int y, |
| 47 SkPMColor[], int count); |
47 | 48 |
48 typedef void (*ShaderProc16)(const void* ctx, int x, int y, uint16_t[], int
count); | 49 typedef void (*ShaderProc16)(const SkBitmapProcState&, int x, int y, |
| 50 uint16_t[], int count); |
49 | 51 |
50 typedef void (*MatrixProc)(const SkBitmapProcState&, | 52 typedef void (*MatrixProc)(const SkBitmapProcState&, |
51 uint32_t bitmapXY[], | 53 uint32_t bitmapXY[], |
52 int count, | 54 int count, |
53 int x, int y); | 55 int x, int y); |
54 | 56 |
55 typedef void (*SampleProc32)(const SkBitmapProcState&, | 57 typedef void (*SampleProc32)(const SkBitmapProcState&, |
56 const uint32_t[], | 58 const uint32_t[], |
57 int count, | 59 int count, |
58 SkPMColor colors[]); | 60 SkPMColor colors[]); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, | 206 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, |
205 uint32_t xy[], int count, int x, int y); | 207 uint32_t xy[], int count, int x, int y); |
206 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, | 208 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, |
207 uint32_t xy[], int count, int x, int y); | 209 uint32_t xy[], int count, int x, int y); |
208 void S32_D16_filter_DX(const SkBitmapProcState& s, | 210 void S32_D16_filter_DX(const SkBitmapProcState& s, |
209 const uint32_t* xy, int count, uint16_t* colors); | 211 const uint32_t* xy, int count, uint16_t* colors); |
210 void S32_D16_filter_DXDY(const SkBitmapProcState& s, | 212 void S32_D16_filter_DXDY(const SkBitmapProcState& s, |
211 const uint32_t* xy, int count, uint16_t* colors); | 213 const uint32_t* xy, int count, uint16_t* colors); |
212 | 214 |
213 #endif | 215 #endif |
OLD | NEW |