Chromium Code Reviews| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 MatrixProc chooseMatrixProc(bool trivial_matrix); | 136 MatrixProc chooseMatrixProc(bool trivial_matrix); |
| 137 bool chooseProcs(const SkMatrix& inv, const SkPaint&); | 137 bool chooseProcs(const SkMatrix& inv, const SkPaint&); |
|
robertphillips
2015/01/14 21:54:20
clampClamp -> clampInBothDirs ?
| |
| 138 bool chooseScanlineProcs(bool trivialMatrix, bool clampClamp, const SkPaint& paint); | |
| 138 ShaderProc32 chooseShaderProc32(); | 139 ShaderProc32 chooseShaderProc32(); |
| 139 | 140 |
| 140 // returns false if we did not try to scale the image. In that case, we | 141 // returns false if we did not try to scale the image. In that case, we |
| 141 // will need to "lock" its pixels some other way. | 142 // will need to "lock" its pixels some other way. |
| 142 bool possiblyScaleImage(); | 143 bool possiblyScaleImage(); |
| 143 | 144 |
| 144 // returns false if we failed to "lock" the pixels at all. Typically this | 145 // returns false if we failed to "lock" the pixels at all. Typically this |
| 145 // means we have to abort the shader. | 146 // means we have to abort the shader. |
| 146 bool lockBaseBitmap(); | 147 bool lockBaseBitmap(); |
| 147 | 148 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 207 void S32_D16_filter_DXDY(const SkBitmapProcState& s, | 208 void S32_D16_filter_DXDY(const SkBitmapProcState& s, |
| 208 const uint32_t* xy, int count, uint16_t* colors); | 209 const uint32_t* xy, int count, uint16_t* colors); |
| 209 | 210 |
| 210 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, | 211 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, |
| 211 SkPMColor *SK_RESTRICT colors, int count); | 212 SkPMColor *SK_RESTRICT colors, int count); |
| 212 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, | 213 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, |
| 213 uint16_t *SK_RESTRICT colors, int count); | 214 uint16_t *SK_RESTRICT colors, int count); |
| 214 | 215 |
| 215 | 216 |
| 216 #endif | 217 #endif |
| OLD | NEW |