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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 SkFractionalInt fInvKyFractionalInt; | 72 SkFractionalInt fInvKyFractionalInt; |
73 | 73 |
74 FixedTileProc fTileProcX; // chooseProcs | 74 FixedTileProc fTileProcX; // chooseProcs |
75 FixedTileProc fTileProcY; // chooseProcs | 75 FixedTileProc fTileProcY; // chooseProcs |
76 FixedTileLowBitsProc fTileLowBitsProcX; // chooseProcs | 76 FixedTileLowBitsProc fTileLowBitsProcX; // chooseProcs |
77 FixedTileLowBitsProc fTileLowBitsProcY; // chooseProcs | 77 FixedTileLowBitsProc fTileLowBitsProcY; // chooseProcs |
78 IntTileProc fIntTileProcY; // chooseProcs | 78 IntTileProc fIntTileProcY; // chooseProcs |
79 SkFixed fFilterOneX; | 79 SkFixed fFilterOneX; |
80 SkFixed fFilterOneY; | 80 SkFixed fFilterOneY; |
81 | 81 |
82 SkConvolutionProcs* fConvolutionProcs; // possiblyScaleImage | |
83 | |
84 SkPMColor fPaintPMColor; // chooseProcs - A8 config | 82 SkPMColor fPaintPMColor; // chooseProcs - A8 config |
85 SkFixed fInvSx; // chooseProcs | 83 SkFixed fInvSx; // chooseProcs |
86 SkFixed fInvKy; // chooseProcs | 84 SkFixed fInvKy; // chooseProcs |
87 uint16_t fAlphaScale; // chooseProcs | 85 uint16_t fAlphaScale; // chooseProcs |
88 uint8_t fInvType; // chooseProcs | 86 uint8_t fInvType; // chooseProcs |
89 uint8_t fTileModeX; // CONSTRUCTOR | 87 uint8_t fTileModeX; // CONSTRUCTOR |
90 uint8_t fTileModeY; // CONSTRUCTOR | 88 uint8_t fTileModeY; // CONSTRUCTOR |
91 uint8_t fFilterLevel; // chooseProcs | 89 uint8_t fFilterLevel; // chooseProcs |
92 | 90 |
93 /** The shader will let us know when we can release some of our resources | 91 /** The shader will let us know when we can release some of our resources |
(...skipping 14 matching lines...) Expand all Loading... |
108 They will already have valid function pointers, so a platform that does | 106 They will already have valid function pointers, so a platform that does |
109 not have an accelerated version can just leave that field as is. A valid | 107 not have an accelerated version can just leave that field as is. A valid |
110 implementation can do nothing (see SkBitmapProcState_opts_none.cpp) | 108 implementation can do nothing (see SkBitmapProcState_opts_none.cpp) |
111 */ | 109 */ |
112 void platformProcs(); | 110 void platformProcs(); |
113 | 111 |
114 /** Platforms can also optionally overwrite the convolution functions | 112 /** Platforms can also optionally overwrite the convolution functions |
115 if we have SIMD versions of them. | 113 if we have SIMD versions of them. |
116 */ | 114 */ |
117 | 115 |
118 void platformConvolutionProcs(); | 116 void platformConvolutionProcs(SkConvolutionProcs*); |
119 | 117 |
120 /** Given the byte size of the index buffer to be passed to the matrix proc, | 118 /** Given the byte size of the index buffer to be passed to the matrix proc, |
121 return the maximum number of resulting pixels that can be computed | 119 return the maximum number of resulting pixels that can be computed |
122 (i.e. the number of SkPMColor values to be written by the sample proc). | 120 (i.e. the number of SkPMColor values to be written by the sample proc). |
123 This routine takes into account that filtering and scale-vs-affine | 121 This routine takes into account that filtering and scale-vs-affine |
124 affect the amount of buffer space needed. | 122 affect the amount of buffer space needed. |
125 | 123 |
126 Only valid to call after chooseProcs (setContext) has been called. It is | 124 Only valid to call after chooseProcs (setContext) has been called. It is |
127 safe to call this inside the shader's shadeSpan() method. | 125 safe to call this inside the shader's shadeSpan() method. |
128 */ | 126 */ |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 void S32_D16_filter_DX(const SkBitmapProcState& s, | 222 void S32_D16_filter_DX(const SkBitmapProcState& s, |
225 const uint32_t* xy, int count, uint16_t* colors); | 223 const uint32_t* xy, int count, uint16_t* colors); |
226 | 224 |
227 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, | 225 void highQualityFilter32(const SkBitmapProcState &s, int x, int y, |
228 SkPMColor *SK_RESTRICT colors, int count); | 226 SkPMColor *SK_RESTRICT colors, int count); |
229 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, | 227 void highQualityFilter16(const SkBitmapProcState &s, int x, int y, |
230 uint16_t *SK_RESTRICT colors, int count); | 228 uint16_t *SK_RESTRICT colors, int count); |
231 | 229 |
232 | 230 |
233 #endif | 231 #endif |
OLD | NEW |