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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 SkPMColor fPaintPMColor; // chooseProcs - A8 config | 83 SkPMColor fPaintPMColor; // chooseProcs - A8 config |
84 SkFixed fInvSx; // chooseProcs | 84 SkFixed fInvSx; // chooseProcs |
85 SkFixed fInvKy; // chooseProcs | 85 SkFixed fInvKy; // chooseProcs |
86 uint16_t fAlphaScale; // chooseProcs | 86 uint16_t fAlphaScale; // chooseProcs |
87 uint8_t fInvType; // chooseProcs | 87 uint8_t fInvType; // chooseProcs |
88 uint8_t fTileModeX; // CONSTRUCTOR | 88 uint8_t fTileModeX; // CONSTRUCTOR |
89 uint8_t fTileModeY; // CONSTRUCTOR | 89 uint8_t fTileModeY; // CONSTRUCTOR |
90 uint8_t fFilterLevel; // chooseProcs | 90 uint8_t fFilterLevel; // chooseProcs |
91 | 91 |
92 /** The shader will let us know when we can release some of our resources | |
93 * like scaled bitmaps. | |
94 */ | |
95 | |
96 void endContext(); | |
97 | |
98 /** Platforms implement this, and can optionally overwrite only the | 92 /** Platforms implement this, and can optionally overwrite only the |
99 following fields: | 93 following fields: |
100 | 94 |
101 fShaderProc32 | 95 fShaderProc32 |
102 fShaderProc16 | 96 fShaderProc16 |
103 fMatrixProc | 97 fMatrixProc |
104 fSampleProc32 | 98 fSampleProc32 |
105 fSampleProc32 | 99 fSampleProc32 |
106 | 100 |
107 They will already have valid function pointers, so a platform that does | 101 They will already have valid function pointers, so a platform that does |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 void S32_D16_filter_DX(const SkBitmapProcState& s, | 223 void S32_D16_filter_DX(const SkBitmapProcState& s, |
230 const uint32_t* xy, int count, uint16_t* colors); | 224 const uint32_t* xy, int count, uint16_t* colors); |
231 | 225 |
232 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, | 226 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, |
233 SkPMColor *SK_RESTRICT colors, int count); | 227 SkPMColor *SK_RESTRICT colors, int count); |
234 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, | 228 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, |
235 uint16_t *SK_RESTRICT colors, int count); | 229 uint16_t *SK_RESTRICT colors, int count); |
236 | 230 |
237 | 231 |
238 #endif | 232 #endif |
OLD | NEW |