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