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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 #ifdef SK_DEBUG | 111 #ifdef SK_DEBUG |
112 MatrixProc getMatrixProc() const; | 112 MatrixProc getMatrixProc() const; |
113 #else | 113 #else |
114 MatrixProc getMatrixProc() const { return fMatrixProc; } | 114 MatrixProc getMatrixProc() const { return fMatrixProc; } |
115 #endif | 115 #endif |
116 SampleProc32 getSampleProc32() const { return fSampleProc32; } | 116 SampleProc32 getSampleProc32() const { return fSampleProc32; } |
117 SampleProc16 getSampleProc16() const { return fSampleProc16; } | 117 SampleProc16 getSampleProc16() const { return fSampleProc16; } |
118 | 118 |
119 private: | 119 private: |
120 friend class SkBitmapProcShader; | 120 friend class SkBitmapProcShader; |
| 121 friend class SkLightingShaderImpl; |
121 | 122 |
122 ShaderProc32 fShaderProc32; // chooseProcs | 123 ShaderProc32 fShaderProc32; // chooseProcs |
123 ShaderProc16 fShaderProc16; // chooseProcs | 124 ShaderProc16 fShaderProc16; // chooseProcs |
124 // These are used if the shaderproc is NULL | 125 // These are used if the shaderproc is NULL |
125 MatrixProc fMatrixProc; // chooseProcs | 126 MatrixProc fMatrixProc; // chooseProcs |
126 SampleProc32 fSampleProc32; // chooseProcs | 127 SampleProc32 fSampleProc32; // chooseProcs |
127 SampleProc16 fSampleProc16; // chooseProcs | 128 SampleProc16 fSampleProc16; // chooseProcs |
128 | 129 |
129 SkBitmap fOrigBitmap; // CONSTRUCTOR | 130 SkBitmap fOrigBitmap; // CONSTRUCTOR |
130 | 131 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, | 190 void ClampX_ClampY_filter_affine(const SkBitmapProcState& s, |
190 uint32_t xy[], int count, int x, int y); | 191 uint32_t xy[], int count, int x, int y); |
191 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, | 192 void ClampX_ClampY_nofilter_affine(const SkBitmapProcState& s, |
192 uint32_t xy[], int count, int x, int y); | 193 uint32_t xy[], int count, int x, int y); |
193 void S32_D16_filter_DX(const SkBitmapProcState& s, | 194 void S32_D16_filter_DX(const SkBitmapProcState& s, |
194 const uint32_t* xy, int count, uint16_t* colors); | 195 const uint32_t* xy, int count, uint16_t* colors); |
195 void S32_D16_filter_DXDY(const SkBitmapProcState& s, | 196 void S32_D16_filter_DXDY(const SkBitmapProcState& s, |
196 const uint32_t* xy, int count, uint16_t* colors); | 197 const uint32_t* xy, int count, uint16_t* colors); |
197 | 198 |
198 #endif | 199 #endif |
OLD | NEW |