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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 119 // These are used if the shaderproc is NULL | 119 // These are used if the shaderproc is NULL |
| 120 MatrixProc fMatrixProc; // chooseProcs | 120 MatrixProc fMatrixProc; // chooseProcs |
| 121 SampleProc32 fSampleProc32; // chooseProcs | 121 SampleProc32 fSampleProc32; // chooseProcs |
| 122 SampleProc16 fSampleProc16; // chooseProcs | 122 SampleProc16 fSampleProc16; // chooseProcs |
| 123 | 123 |
| 124 SkBitmap fOrigBitmap; // CONSTRUCTOR | 124 SkBitmap fOrigBitmap; // CONSTRUCTOR |
| 125 SkBitmap fScaledBitmap; // chooseProcs | 125 SkBitmap fScaledBitmap; // chooseProcs |
| 126 | 126 |
| 127 SkAutoTUnref<const SkMipMap> fCurrMip; | 127 SkAutoTUnref<const SkMipMap> fCurrMip; |
| 128 | 128 |
| 129 void processHQRequest(); | |
| 130 void processMediumRequest(); | |
| 131 | |
| 132 MatrixProc chooseMatrixProc(bool trivial_matrix); | 129 MatrixProc chooseMatrixProc(bool trivial_matrix); |
| 133 bool chooseProcs(const SkMatrix& inv, const SkPaint&); | 130 bool chooseProcs(const SkMatrix& inv, const SkPaint&); |
| 134 bool chooseScanlineProcs(bool trivialMatrix, bool clampClamp, const SkPaint& paint); | 131 bool chooseScanlineProcs(bool trivialMatrix, bool clampClamp, const SkPaint& paint); |
| 135 ShaderProc32 chooseShaderProc32(); | 132 ShaderProc32 chooseShaderProc32(); |
| 136 | 133 |
| 137 // returns false if we failed to "lock" the pixels at all. Typically this | 134 // returns false if we failed to "lock" the pixels at all. Typically this |
| 138 // means we have to abort the shader. | 135 // means we have to abort the shader. |
| 139 bool lockBaseBitmap(); | 136 bool lockBaseBitmap(); |
|
scroggo
2015/06/02 13:24:54
The implementation appears to be gone. Remove this
reed1
2015/06/02 14:07:46
Done.
| |
| 140 | 137 |
| 141 // Return false if we failed to setup for fast translate (e.g. overflow) | 138 // Return false if we failed to setup for fast translate (e.g. overflow) |
| 142 bool setupForTranslate(); | 139 bool setupForTranslate(); |
| 143 | 140 |
| 144 #ifdef SK_DEBUG | 141 #ifdef SK_DEBUG |
| 145 static void DebugMatrixProc(const SkBitmapProcState&, | 142 static void DebugMatrixProc(const SkBitmapProcState&, |
| 146 uint32_t[], int count, int x, int y); | 143 uint32_t[], int count, int x, int y); |
| 147 #endif | 144 #endif |
| 148 }; | 145 }; |
| 149 | 146 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 188 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, | 185 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, |
| 189 uint32_t xy[], int count, int x, int y); | 186 uint32_t xy[], int count, int x, int y); |
| 190 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, | 187 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, |
| 191 uint32_t xy[], int count, int x, int y); | 188 uint32_t xy[], int count, int x, int y); |
| 192 void S32_D16_filter_DX(const SkBitmapProcState& s, | 189 void S32_D16_filter_DX(const SkBitmapProcState& s, |
| 193 const uint32_t* xy, int count, uint16_t* colors); | 190 const uint32_t* xy, int count, uint16_t* colors); |
| 194 void S32_D16_filter_DXDY(const SkBitmapProcState& s, | 191 void S32_D16_filter_DXDY(const SkBitmapProcState& s, |
| 195 const uint32_t* xy, int count, uint16_t* colors); | 192 const uint32_t* xy, int count, uint16_t* colors); |
| 196 | 193 |
| 197 #endif | 194 #endif |
| OLD | NEW |