| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 SkBitmapFilter* fBitmapFilter; | 166 SkBitmapFilter* fBitmapFilter; |
| 167 | 167 |
| 168 // If supported, sets fShaderProc32 and fShaderProc16 and returns true, | 168 // If supported, sets fShaderProc32 and fShaderProc16 and returns true, |
| 169 // otherwise returns false. | 169 // otherwise returns false. |
| 170 bool setBitmapFilterProcs(); | 170 bool setBitmapFilterProcs(); |
| 171 | 171 |
| 172 // Return false if we failed to setup for fast translate (e.g. overflow) | 172 // Return false if we failed to setup for fast translate (e.g. overflow) |
| 173 bool setupForTranslate(); | 173 bool setupForTranslate(); |
| 174 | 174 |
| 175 bool isInverseTrivial() const; |
| 176 |
| 175 #ifdef SK_DEBUG | 177 #ifdef SK_DEBUG |
| 176 static void DebugMatrixProc(const SkBitmapProcState&, | 178 static void DebugMatrixProc(const SkBitmapProcState&, |
| 177 uint32_t[], int count, int x, int y); | 179 uint32_t[], int count, int x, int y); |
| 178 #endif | 180 #endif |
| 179 }; | 181 }; |
| 180 | 182 |
| 181 /* Macros for packing and unpacking pairs of 16bit values in a 32bit uint. | 183 /* Macros for packing and unpacking pairs of 16bit values in a 32bit uint. |
| 182 Used to allow access to a stream of uint16_t either one at a time, or | 184 Used to allow access to a stream of uint16_t either one at a time, or |
| 183 2 at a time by unpacking a uint32_t | 185 2 at a time by unpacking a uint32_t |
| 184 */ | 186 */ |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 void S32_D16_filter_DX(const SkBitmapProcState& s, | 225 void S32_D16_filter_DX(const SkBitmapProcState& s, |
| 224 const uint32_t* xy, int count, uint16_t* colors); | 226 const uint32_t* xy, int count, uint16_t* colors); |
| 225 | 227 |
| 226 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, | 228 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, |
| 227 SkPMColor *SK_RESTRICT colors, int count); | 229 SkPMColor *SK_RESTRICT colors, int count); |
| 228 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, | 230 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, |
| 229 uint16_t *SK_RESTRICT colors, int count); | 231 uint16_t *SK_RESTRICT colors, int count); |
| 230 | 232 |
| 231 | 233 |
| 232 #endif | 234 #endif |
| OLD | NEW |