| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 MatrixProc fMatrixProc; // chooseProcs | 126 MatrixProc fMatrixProc; // chooseProcs |
| 127 SampleProc32 fSampleProc32; // chooseProcs | 127 SampleProc32 fSampleProc32; // chooseProcs |
| 128 SampleProc16 fSampleProc16; // chooseProcs | 128 SampleProc16 fSampleProc16; // chooseProcs |
| 129 | 129 |
| 130 SkBitmap fOrigBitmap; // CONSTRUCTOR | 130 SkBitmap fOrigBitmap; // CONSTRUCTOR |
| 131 SkBitmap fScaledBitmap; // chooseProcs | 131 SkBitmap fScaledBitmap; // chooseProcs |
| 132 | 132 |
| 133 SkAutoTUnref<const SkMipMap> fCurrMip; | 133 SkAutoTUnref<const SkMipMap> fCurrMip; |
| 134 bool fAdjustedMatrix; // set by possiblyScaleImage | 134 bool fAdjustedMatrix; // set by possiblyScaleImage |
| 135 | 135 |
| 136 void processHQRequest(); |
| 137 void processMediumRequest(); |
| 138 |
| 136 MatrixProc chooseMatrixProc(bool trivial_matrix); | 139 MatrixProc chooseMatrixProc(bool trivial_matrix); |
| 137 bool chooseProcs(const SkMatrix& inv, const SkPaint&); | 140 bool chooseProcs(const SkMatrix& inv, const SkPaint&); |
| 138 bool chooseScanlineProcs(bool trivialMatrix, bool clampClamp, const SkPaint&
paint); | 141 bool chooseScanlineProcs(bool trivialMatrix, bool clampClamp, const SkPaint&
paint); |
| 139 ShaderProc32 chooseShaderProc32(); | 142 ShaderProc32 chooseShaderProc32(); |
| 140 | 143 |
| 141 // returns false if we did not try to scale the image. In that case, we | 144 // returns false if we did not try to scale the image. In that case, we |
| 142 // will need to "lock" its pixels some other way. | 145 // will need to "lock" its pixels some other way. |
| 143 bool possiblyScaleImage(); | 146 bool possiblyScaleImage(); |
| 144 | 147 |
| 145 // returns false if we failed to "lock" the pixels at all. Typically this | 148 // returns false if we failed to "lock" the pixels at all. Typically this |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 void S32_D16_filter_DXDY(const SkBitmapProcState& s, | 211 void S32_D16_filter_DXDY(const SkBitmapProcState& s, |
| 209 const uint32_t* xy, int count, uint16_t* colors); | 212 const uint32_t* xy, int count, uint16_t* colors); |
| 210 | 213 |
| 211 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, | 214 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, |
| 212 SkPMColor *SK_RESTRICT colors, int count); | 215 SkPMColor *SK_RESTRICT colors, int count); |
| 213 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, | 216 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, |
| 214 uint16_t *SK_RESTRICT colors, int count); | 217 uint16_t *SK_RESTRICT colors, int count); |
| 215 | 218 |
| 216 | 219 |
| 217 #endif | 220 #endif |
| OLD | NEW |