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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 ShaderProc32 fShaderProc32; // chooseProcs | 133 ShaderProc32 fShaderProc32; // chooseProcs |
134 ShaderProc16 fShaderProc16; // chooseProcs | 134 ShaderProc16 fShaderProc16; // chooseProcs |
135 // These are used if the shaderproc is NULL | 135 // These are used if the shaderproc is NULL |
136 MatrixProc fMatrixProc; // chooseProcs | 136 MatrixProc fMatrixProc; // chooseProcs |
137 SampleProc32 fSampleProc32; // chooseProcs | 137 SampleProc32 fSampleProc32; // chooseProcs |
138 SampleProc16 fSampleProc16; // chooseProcs | 138 SampleProc16 fSampleProc16; // chooseProcs |
139 | 139 |
140 SkBitmap fOrigBitmap; // CONSTRUCTOR | 140 SkBitmap fOrigBitmap; // CONSTRUCTOR |
141 SkBitmap fScaledBitmap; // chooseProcs | 141 SkBitmap fScaledBitmap; // chooseProcs |
142 | 142 |
143 SkAutoTUnref<const SkMipMap> fCurrMip; | 143 SkAutoTUnref<SkMipMap> fCurrMip; |
144 bool fAdjustedMatrix; // set by possiblyScaleImage | 144 bool fAdjustedMatrix; // set by possiblyScaleImage |
145 | 145 |
146 MatrixProc chooseMatrixProc(bool trivial_matrix); | 146 MatrixProc chooseMatrixProc(bool trivial_matrix); |
147 bool chooseProcs(const SkMatrix& inv, const SkPaint&); | 147 bool chooseProcs(const SkMatrix& inv, const SkPaint&); |
148 ShaderProc32 chooseShaderProc32(); | 148 ShaderProc32 chooseShaderProc32(); |
149 | 149 |
150 // returns false if we did not try to scale the image. In that case, we | 150 // returns false if we did not try to scale the image. In that case, we |
151 // will need to "lock" its pixels some other way. | 151 // will need to "lock" its pixels some other way. |
152 bool possiblyScaleImage(); | 152 bool possiblyScaleImage(); |
153 | 153 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 void S32_D16_filter_DX(const SkBitmapProcState& s, | 215 void S32_D16_filter_DX(const SkBitmapProcState& s, |
216 const uint32_t* xy, int count, uint16_t* colors); | 216 const uint32_t* xy, int count, uint16_t* colors); |
217 | 217 |
218 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, | 218 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, |
219 SkPMColor *SK_RESTRICT colors, int count); | 219 SkPMColor *SK_RESTRICT colors, int count); |
220 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, | 220 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, |
221 uint16_t *SK_RESTRICT colors, int count); | 221 uint16_t *SK_RESTRICT colors, int count); |
222 | 222 |
223 | 223 |
224 #endif | 224 #endif |
OLD | NEW |