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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 virtual void blitRect(int x, int y, int width, int height); | 89 virtual void blitRect(int x, int y, int width, int height); |
90 virtual void blitMask(const SkMask&, const SkIRect&); | 90 virtual void blitMask(const SkMask&, const SkIRect&); |
91 virtual const SkBitmap* justAnOpaqueColor(uint32_t*); | 91 virtual const SkBitmap* justAnOpaqueColor(uint32_t*); |
92 | 92 |
93 protected: | 93 protected: |
94 SkColor fColor; | 94 SkColor fColor; |
95 SkPMColor fPMColor; | 95 SkPMColor fPMColor; |
96 SkBlitRow::ColorProc fColor32Proc; | 96 SkBlitRow::ColorProc fColor32Proc; |
97 | 97 |
98 private: | 98 private: |
| 99 #ifdef SK_BLEND_CORRECTLY |
| 100 unsigned fSrcA; |
| 101 #else |
99 unsigned fSrcA, fSrcR, fSrcG, fSrcB; | 102 unsigned fSrcA, fSrcR, fSrcG, fSrcB; |
| 103 #endif |
100 | 104 |
101 // illegal | 105 // illegal |
102 SkARGB32_Blitter& operator=(const SkARGB32_Blitter&); | 106 SkARGB32_Blitter& operator=(const SkARGB32_Blitter&); |
103 | 107 |
104 typedef SkRasterBlitter INHERITED; | 108 typedef SkRasterBlitter INHERITED; |
105 }; | 109 }; |
106 | 110 |
107 class SkARGB32_Opaque_Blitter : public SkARGB32_Blitter { | 111 class SkARGB32_Opaque_Blitter : public SkARGB32_Blitter { |
108 public: | 112 public: |
109 SkARGB32_Opaque_Blitter(const SkBitmap& device, const SkPaint& paint) | 113 SkARGB32_Opaque_Blitter(const SkBitmap& device, const SkPaint& paint) |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 extern SkBlitter* SkBlitter_ChooseD4444(const SkBitmap& device, | 182 extern SkBlitter* SkBlitter_ChooseD4444(const SkBitmap& device, |
179 const SkPaint& paint, | 183 const SkPaint& paint, |
180 void* storage, size_t storageSize); | 184 void* storage, size_t storageSize); |
181 | 185 |
182 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, | 186 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, |
183 const SkPaint& paint, | 187 const SkPaint& paint, |
184 void* storage, size_t storageSize); | 188 void* storage, size_t storageSize); |
185 | 189 |
186 #endif | 190 #endif |
187 | 191 |
OLD | NEW |