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