| 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 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 SkTBlitterAllocator*, | 130 SkTBlitterAllocator*, |
| 131 bool drawCoverage = false); | 131 bool drawCoverage = false); |
| 132 | 132 |
| 133 static SkBlitter* ChooseSprite(const SkPixmap& dst, | 133 static SkBlitter* ChooseSprite(const SkPixmap& dst, |
| 134 const SkPaint&, | 134 const SkPaint&, |
| 135 const SkPixmap& src, | 135 const SkPixmap& src, |
| 136 int left, int top, | 136 int left, int top, |
| 137 SkTBlitterAllocator*); | 137 SkTBlitterAllocator*); |
| 138 ///@} | 138 ///@} |
| 139 | 139 |
| 140 static SkShader::ContextRec::DstType PreferredShaderDest(const SkImageInfo&)
; |
| 141 |
| 140 protected: | 142 protected: |
| 141 SkAutoMalloc fBlitMemory; | 143 SkAutoMalloc fBlitMemory; |
| 142 }; | 144 }; |
| 143 | 145 |
| 144 /** This blitter silently never draws anything. | 146 /** This blitter silently never draws anything. |
| 145 */ | 147 */ |
| 146 class SkNullBlitter : public SkBlitter { | 148 class SkNullBlitter : public SkBlitter { |
| 147 public: | 149 public: |
| 148 void blitH(int x, int y, int width) override; | 150 void blitH(int x, int y, int width) override; |
| 149 void blitAntiH(int x, int y, const SkAlpha[], const int16_t runs[]) override
; | 151 void blitAntiH(int x, int y, const SkAlpha[], const int16_t runs[]) override
; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, | 233 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, |
| 232 const SkIRect* bounds = nullptr); | 234 const SkIRect* bounds = nullptr); |
| 233 | 235 |
| 234 private: | 236 private: |
| 235 SkNullBlitter fNullBlitter; | 237 SkNullBlitter fNullBlitter; |
| 236 SkRectClipBlitter fRectBlitter; | 238 SkRectClipBlitter fRectBlitter; |
| 237 SkRgnClipBlitter fRgnBlitter; | 239 SkRgnClipBlitter fRgnBlitter; |
| 238 }; | 240 }; |
| 239 | 241 |
| 240 #endif | 242 #endif |
| OLD | NEW |