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 22 matching lines...) Expand all Loading... | |
33 | 33 |
34 private: | 34 private: |
35 // illegal | 35 // illegal |
36 SkShaderBlitter& operator=(const SkShaderBlitter&); | 36 SkShaderBlitter& operator=(const SkShaderBlitter&); |
37 | 37 |
38 typedef SkRasterBlitter INHERITED; | 38 typedef SkRasterBlitter INHERITED; |
39 }; | 39 }; |
40 | 40 |
41 /////////////////////////////////////////////////////////////////////////////// | 41 /////////////////////////////////////////////////////////////////////////////// |
42 | 42 |
43 class SkA8_Coverage_Blitter : public SkRasterBlitter { | |
44 public: | |
45 SkA8_Coverage_Blitter(const SkBitmap& device, const SkPaint& paint); | |
46 virtual void blitH(int x, int y, int width) SK_OVERRIDE; | |
47 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]) SK_OVERRIDE; | |
48 virtual void blitV(int x, int y, int height, SkAlpha alpha) SK_OVERRIDE; | |
49 virtual void blitRect(int x, int y, int width, int height) SK_OVERRIDE; | |
50 virtual void blitMask(const SkMask&, const SkIRect&) SK_OVERRIDE; | |
51 virtual const SkBitmap* justAnOpaqueColor(uint32_t*) SK_OVERRIDE; | |
robertphillips
2013/11/05 17:17:46
private:
INHERITED?
| |
52 }; | |
53 | |
43 class SkA8_Blitter : public SkRasterBlitter { | 54 class SkA8_Blitter : public SkRasterBlitter { |
44 public: | 55 public: |
45 SkA8_Blitter(const SkBitmap& device, const SkPaint& paint); | 56 SkA8_Blitter(const SkBitmap& device, const SkPaint& paint); |
46 virtual void blitH(int x, int y, int width); | 57 virtual void blitH(int x, int y, int width); |
47 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]); | 58 virtual void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_ t runs[]); |
48 virtual void blitV(int x, int y, int height, SkAlpha alpha); | 59 virtual void blitV(int x, int y, int height, SkAlpha alpha); |
49 virtual void blitRect(int x, int y, int width, int height); | 60 virtual void blitRect(int x, int y, int width, int height); |
50 virtual void blitMask(const SkMask&, const SkIRect&); | 61 virtual void blitMask(const SkMask&, const SkIRect&); |
51 virtual const SkBitmap* justAnOpaqueColor(uint32_t*); | 62 virtual const SkBitmap* justAnOpaqueColor(uint32_t*); |
52 | 63 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
178 | 189 |
179 These pre-conditions must be handled by the caller, in our case | 190 These pre-conditions must be handled by the caller, in our case |
180 SkBlitter::Choose(...) | 191 SkBlitter::Choose(...) |
181 */ | 192 */ |
182 | 193 |
183 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, | 194 extern SkBlitter* SkBlitter_ChooseD565(const SkBitmap& device, |
184 const SkPaint& paint, | 195 const SkPaint& paint, |
185 void* storage, size_t storageSize); | 196 void* storage, size_t storageSize); |
186 | 197 |
187 #endif | 198 #endif |
OLD | NEW |