| 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 SkBlitter_DEFINED | 8 #ifndef SkBlitter_DEFINED |
| 9 #define SkBlitter_DEFINED | 9 #define SkBlitter_DEFINED |
| 10 | 10 |
| 11 #include "SkBitmapProcShader.h" | 11 #include "SkBitmapProcShader.h" |
| 12 #include "SkMask.h" | 12 #include "SkColor.h" |
| 13 #include "SkMatrix.h" | 13 #include "SkRect.h" |
| 14 #include "SkPaint.h" | |
| 15 #include "SkPixmap.h" | |
| 16 #include "SkRefCnt.h" | |
| 17 #include "SkRegion.h" | 14 #include "SkRegion.h" |
| 18 #include "SkShader.h" | 15 #include "SkShader.h" |
| 19 #include "SkSmallAllocator.h" | 16 #include "SkTypes.h" |
| 17 |
| 18 class SkMatrix; |
| 19 class SkPaint; |
| 20 class SkPixmap; |
| 21 struct SkMask; |
| 20 | 22 |
| 21 /** SkBlitter and its subclasses are responsible for actually writing pixels | 23 /** SkBlitter and its subclasses are responsible for actually writing pixels |
| 22 into memory. Besides efficiency, they handle clipping and antialiasing. | 24 into memory. Besides efficiency, they handle clipping and antialiasing. |
| 23 */ | 25 */ |
| 24 class SkBlitter { | 26 class SkBlitter { |
| 25 public: | 27 public: |
| 26 virtual ~SkBlitter(); | 28 virtual ~SkBlitter(); |
| 27 | 29 |
| 28 /// Blit a horizontal run of one or more pixels. | 30 /// Blit a horizontal run of one or more pixels. |
| 29 virtual void blitH(int x, int y, int width); | 31 virtual void blitH(int x, int y, int width); |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, | 231 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, |
| 230 const SkIRect* bounds = NULL); | 232 const SkIRect* bounds = NULL); |
| 231 | 233 |
| 232 private: | 234 private: |
| 233 SkNullBlitter fNullBlitter; | 235 SkNullBlitter fNullBlitter; |
| 234 SkRectClipBlitter fRectBlitter; | 236 SkRectClipBlitter fRectBlitter; |
| 235 SkRgnClipBlitter fRgnBlitter; | 237 SkRgnClipBlitter fRgnBlitter; |
| 236 }; | 238 }; |
| 237 | 239 |
| 238 #endif | 240 #endif |
| OLD | NEW |