| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 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 SkCoreBlitters_DEFINED | 8 #ifndef SkCoreBlitters_DEFINED |
| 9 #define SkCoreBlitters_DEFINED | 9 #define SkCoreBlitters_DEFINED |
| 10 | 10 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 SkBlitRow::Proc32 fProc32; | 178 SkBlitRow::Proc32 fProc32; |
| 179 SkBlitRow::Proc32 fProc32Blend; | 179 SkBlitRow::Proc32 fProc32Blend; |
| 180 bool fShadeDirectlyIntoDevice; | 180 bool fShadeDirectlyIntoDevice; |
| 181 | 181 |
| 182 // illegal | 182 // illegal |
| 183 SkARGB32_Shader_Blitter& operator=(const SkARGB32_Shader_Blitter&); | 183 SkARGB32_Shader_Blitter& operator=(const SkARGB32_Shader_Blitter&); |
| 184 | 184 |
| 185 typedef SkShaderBlitter INHERITED; | 185 typedef SkShaderBlitter INHERITED; |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 SkBlitter* SkBlitter_ARGB32_Create(const SkPixmap& device, const SkPaint& paint, | 188 SkBlitter* SkBlitter_ARGB32_Create(const SkPixmap& device, const SkPaint&, SkSha
der::Context*, |
| 189 SkShader::Context* shaderContext, | 189 SkTBlitterAllocator*); |
| 190 SkTBlitterAllocator* allocator); | |
| 191 | 190 |
| 192 SkBlitter* SkBlitter_ARGB64_Create(const SkPixmap& device, const SkPaint& paint, | 191 SkBlitter* SkBlitter_F16_Create(const SkPixmap& device, const SkPaint&, SkShader
::Context*, |
| 193 SkShader::Context* shaderContext, | 192 SkTBlitterAllocator*); |
| 194 SkTBlitterAllocator* allocator); | |
| 195 | 193 |
| 196 /////////////////////////////////////////////////////////////////////////////// | 194 /////////////////////////////////////////////////////////////////////////////// |
| 197 | 195 |
| 198 /* These return the correct subclass of blitter for their device config. | 196 /* These return the correct subclass of blitter for their device config. |
| 199 | 197 |
| 200 Currently, they make the following assumptions about the state of the | 198 Currently, they make the following assumptions about the state of the |
| 201 paint: | 199 paint: |
| 202 | 200 |
| 203 1. If there is an xfermode, there will also be a shader | 201 1. If there is an xfermode, there will also be a shader |
| 204 2. If there is a colorfilter, there will be a shader that itself handles | 202 2. If there is a colorfilter, there will be a shader that itself handles |
| 205 calling the filter, so the blitter can always ignore the colorfilter obj | 203 calling the filter, so the blitter can always ignore the colorfilter obj |
| 206 | 204 |
| 207 These pre-conditions must be handled by the caller, in our case | 205 These pre-conditions must be handled by the caller, in our case |
| 208 SkBlitter::Choose(...) | 206 SkBlitter::Choose(...) |
| 209 */ | 207 */ |
| 210 | 208 |
| 211 SkBlitter* SkBlitter_ChooseD565(const SkPixmap& device, const SkPaint& paint, | 209 SkBlitter* SkBlitter_ChooseD565(const SkPixmap& device, const SkPaint& paint, |
| 212 SkShader::Context* shaderContext, | 210 SkShader::Context* shaderContext, |
| 213 SkTBlitterAllocator* allocator); | 211 SkTBlitterAllocator* allocator); |
| 214 | 212 |
| 215 #endif | 213 #endif |
| OLD | NEW |