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 SkBitmapProcState&, int x, int y, | 46 typedef void (*ShaderProc32)(const void* ctx, int x, int y, SkPMColor[], int
count); |
47 SkPMColor[], int count); | |
48 | 47 |
49 typedef void (*ShaderProc16)(const SkBitmapProcState&, int x, int y, | 48 typedef void (*ShaderProc16)(const void* ctx, int x, int y, uint16_t[], int
count); |
50 uint16_t[], int count); | |
51 | 49 |
52 typedef void (*MatrixProc)(const SkBitmapProcState&, | 50 typedef void (*MatrixProc)(const SkBitmapProcState&, |
53 uint32_t bitmapXY[], | 51 uint32_t bitmapXY[], |
54 int count, | 52 int count, |
55 int x, int y); | 53 int x, int y); |
56 | 54 |
57 typedef void (*SampleProc32)(const SkBitmapProcState&, | 55 typedef void (*SampleProc32)(const SkBitmapProcState&, |
58 const uint32_t[], | 56 const uint32_t[], |
59 int count, | 57 int count, |
60 SkPMColor colors[]); | 58 SkPMColor colors[]); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, | 204 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, |
207 uint32_t xy[], int count, int x, int y); | 205 uint32_t xy[], int count, int x, int y); |
208 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, | 206 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, |
209 uint32_t xy[], int count, int x, int y); | 207 uint32_t xy[], int count, int x, int y); |
210 void S32_D16_filter_DX(const SkBitmapProcState& s, | 208 void S32_D16_filter_DX(const SkBitmapProcState& s, |
211 const uint32_t* xy, int count, uint16_t* colors); | 209 const uint32_t* xy, int count, uint16_t* colors); |
212 void S32_D16_filter_DXDY(const SkBitmapProcState& s, | 210 void S32_D16_filter_DXDY(const SkBitmapProcState& s, |
213 const uint32_t* xy, int count, uint16_t* colors); | 211 const uint32_t* xy, int count, uint16_t* colors); |
214 | 212 |
215 #endif | 213 #endif |
OLD | NEW |