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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 class SkARGB32_Shader_Blitter : public SkShaderBlitter { | 164 class SkARGB32_Shader_Blitter : public SkShaderBlitter { |
165 public: | 165 public: |
166 SkARGB32_Shader_Blitter(const SkPixmap& device, const SkPaint& paint, | 166 SkARGB32_Shader_Blitter(const SkPixmap& device, const SkPaint& paint, |
167 SkShader::Context* shaderContext); | 167 SkShader::Context* shaderContext); |
168 virtual ~SkARGB32_Shader_Blitter(); | 168 virtual ~SkARGB32_Shader_Blitter(); |
169 void blitH(int x, int y, int width) override; | 169 void blitH(int x, int y, int width) override; |
170 void blitV(int x, int y, int height, SkAlpha alpha) override; | 170 void blitV(int x, int y, int height, SkAlpha alpha) override; |
171 void blitRect(int x, int y, int width, int height) override; | 171 void blitRect(int x, int y, int width, int height) override; |
172 void blitAntiH(int x, int y, const SkAlpha[], const int16_t[]) override; | 172 void blitAntiH(int x, int y, const SkAlpha[], const int16_t[]) override; |
173 void blitMask(const SkMask&, const SkIRect&) override; | 173 void blitMask(const SkMask&, const SkIRect&) override; |
174 | 174 |
175 private: | 175 private: |
176 SkXfermode* fXfermode; | 176 SkXfermode* fXfermode; |
177 SkPMColor* fBuffer; | 177 SkPMColor* fBuffer; |
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& paint, |
189 SkShader::Context* shaderContext, | 189 SkShader::Context* shaderContext, |
190 SkTBlitterAllocator* allocator); | 190 SkTBlitterAllocator* allocator); |
191 | 191 |
192 SkBlitter* SkBlitter_ARGB64_Create(const SkPixmap& device, const SkPaint& paint, | 192 SkBlitter* SkBlitter_ARGB64_Create(const SkPixmap& device, const SkPaint& paint, |
193 SkShader::Context* shaderContext, | 193 SkShader::Context* shaderContext, |
194 SkTBlitterAllocator* allocator); | 194 SkTBlitterAllocator* allocator); |
(...skipping 11 matching lines...) Expand all Loading... |
206 | 206 |
207 These pre-conditions must be handled by the caller, in our case | 207 These pre-conditions must be handled by the caller, in our case |
208 SkBlitter::Choose(...) | 208 SkBlitter::Choose(...) |
209 */ | 209 */ |
210 | 210 |
211 SkBlitter* SkBlitter_ChooseD565(const SkPixmap& device, const SkPaint& paint, | 211 SkBlitter* SkBlitter_ChooseD565(const SkPixmap& device, const SkPaint& paint, |
212 SkShader::Context* shaderContext, | 212 SkShader::Context* shaderContext, |
213 SkTBlitterAllocator* allocator); | 213 SkTBlitterAllocator* allocator); |
214 | 214 |
215 #endif | 215 #endif |
OLD | NEW |