| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 SkARGB32_Shader_Blitter& operator=(const SkARGB32_Shader_Blitter&); | 147 SkARGB32_Shader_Blitter& operator=(const SkARGB32_Shader_Blitter&); |
| 148 | 148 |
| 149 typedef SkShaderBlitter INHERITED; | 149 typedef SkShaderBlitter INHERITED; |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 /////////////////////////////////////////////////////////////////////////////// | 152 /////////////////////////////////////////////////////////////////////////////// |
| 153 | 153 |
| 154 class SkA1_Blitter : public SkRasterBlitter { | 154 class SkA1_Blitter : public SkRasterBlitter { |
| 155 public: | 155 public: |
| 156 SkA1_Blitter(const SkBitmap& device, const SkPaint& paint); | 156 SkA1_Blitter(const SkBitmap& device, const SkPaint& paint); |
| 157 virtual void blitH(int x, int y, int width); | 157 virtual void blitH(int x, int y, int width) SK_OVERRIDE; |
| 158 | 158 |
| 159 private: | 159 private: |
| 160 uint8_t fSrcA; | 160 uint8_t fSrcA; |
| 161 | 161 |
| 162 // illegal | 162 // illegal |
| 163 SkA1_Blitter& operator=(const SkA1_Blitter&); | 163 SkA1_Blitter& operator=(const SkA1_Blitter&); |
| 164 | 164 |
| 165 typedef SkRasterBlitter INHERITED; | 165 typedef SkRasterBlitter INHERITED; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 /////////////////////////////////////////////////////////////////////////////// | 168 /////////////////////////////////////////////////////////////////////////////// |
| 169 | 169 |
| 170 /* These return the correct subclass of blitter for their device config. | 170 /* These return the correct subclass of blitter for their device config. |
| 171 | 171 |
| 172 Currently, they make the following assumptions about the state of the | 172 Currently, they make the following assumptions about the state of the |
| 173 paint: | 173 paint: |
| 174 | 174 |
| 175 1. If there is an xfermode, there will also be a shader | 175 1. If there is an xfermode, there will also be a shader |
| 176 2. If there is a colorfilter, there will be a shader that itself handles | 176 2. If there is a colorfilter, there will be a shader that itself handles |
| 177 calling the filter, so the blitter can always ignore the colorfilter obj | 177 calling the filter, so the blitter can always ignore the colorfilter obj |
| 178 | 178 |
| 179 These pre-conditions must be handled by the caller, in our case | 179 These pre-conditions must be handled by the caller, in our case |
| 180 SkBlitter::Choose(...) | 180 SkBlitter::Choose(...) |
| 181 */ | 181 */ |
| 182 | 182 |
| 183 extern SkBlitter* SkBlitter_ChooseD4444(const SkBitmap& device, | |
| 184 const SkPaint& paint, | |
| 185 void* storage, size_t storageSize); | |
| 186 | |
| 187 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, | 183 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, |
| 188 const SkPaint& paint, | 184 const SkPaint& paint, |
| 189 void* storage, size_t storageSize); | 185 void* storage, size_t storageSize); |
| 190 | 186 |
| 191 #endif | 187 #endif |
| OLD | NEW |