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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 #endif | 116 #endif |
117 SampleProc32 getSampleProc32() const { return fSampleProc32; } | 117 SampleProc32 getSampleProc32() const { return fSampleProc32; } |
118 SampleProc16 getSampleProc16() const { return fSampleProc16; } | 118 SampleProc16 getSampleProc16() const { return fSampleProc16; } |
119 | 119 |
120 private: | 120 private: |
121 friend class SkBitmapProcShader; | 121 friend class SkBitmapProcShader; |
122 friend class SkLightingShaderImpl; | 122 friend class SkLightingShaderImpl; |
123 | 123 |
124 ShaderProc32 fShaderProc32; // chooseProcs | 124 ShaderProc32 fShaderProc32; // chooseProcs |
125 ShaderProc16 fShaderProc16; // chooseProcs | 125 ShaderProc16 fShaderProc16; // chooseProcs |
126 // These are used if the shaderproc is NULL | 126 // These are used if the shaderproc is nullptr |
127 MatrixProc fMatrixProc; // chooseProcs | 127 MatrixProc fMatrixProc; // chooseProcs |
128 SampleProc32 fSampleProc32; // chooseProcs | 128 SampleProc32 fSampleProc32; // chooseProcs |
129 SampleProc16 fSampleProc16; // chooseProcs | 129 SampleProc16 fSampleProc16; // chooseProcs |
130 | 130 |
131 SkBitmap fOrigBitmap; // CONSTRUCTOR | 131 SkBitmap fOrigBitmap; // CONSTRUCTOR |
132 | 132 |
133 enum { | 133 enum { |
134 kBMStateSize = 136 // found by inspection. if too small, we will call n
ew/delete | 134 kBMStateSize = 136 // found by inspection. if too small, we will call n
ew/delete |
135 }; | 135 }; |
136 SkAlignedSStorage<kBMStateSize> fBMStateStorage; | 136 SkAlignedSStorage<kBMStateSize> fBMStateStorage; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, | 191 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, |
192 uint32_t xy[], int count, int x, int y); | 192 uint32_t xy[], int count, int x, int y); |
193 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, | 193 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, |
194 uint32_t xy[], int count, int x, int y); | 194 uint32_t xy[], int count, int x, int y); |
195 void S32_D16_filter_DX(const SkBitmapProcState& s, | 195 void S32_D16_filter_DX(const SkBitmapProcState& s, |
196 const uint32_t* xy, int count, uint16_t* colors); | 196 const uint32_t* xy, int count, uint16_t* colors); |
197 void S32_D16_filter_DXDY(const SkBitmapProcState& s, | 197 void S32_D16_filter_DXDY(const SkBitmapProcState& s, |
198 const uint32_t* xy, int count, uint16_t* colors); | 198 const uint32_t* xy, int count, uint16_t* colors); |
199 | 199 |
200 #endif | 200 #endif |
OLD | NEW |