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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 Return the correct blitter to use given the specified context. | 123 Return the correct blitter to use given the specified context. |
124 */ | 124 */ |
125 static SkBlitter* Choose(const SkBitmap& device, | 125 static SkBlitter* Choose(const SkBitmap& device, |
126 const SkMatrix& matrix, | 126 const SkMatrix& matrix, |
127 const SkPaint& paint, | 127 const SkPaint& paint, |
128 SkTBlitterAllocator*, | 128 SkTBlitterAllocator*, |
129 bool drawCoverage = false); | 129 bool drawCoverage = false); |
130 | 130 |
131 static SkBlitter* ChooseSprite(const SkBitmap& device, | 131 static SkBlitter* ChooseSprite(const SkBitmap& device, |
132 const SkPaint&, | 132 const SkPaint&, |
133 const SkBitmap& src, | 133 const SkPixmap& src, |
134 int left, int top, | 134 int left, int top, |
135 SkTBlitterAllocator*); | 135 SkTBlitterAllocator*); |
136 ///@} | 136 ///@} |
137 | 137 |
138 protected: | 138 protected: |
139 | 139 |
140 SkAutoMalloc fBlitMemory; | 140 SkAutoMalloc fBlitMemory; |
141 | 141 |
142 private: | 142 private: |
143 }; | 143 }; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, | 235 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, |
236 const SkIRect* bounds = NULL); | 236 const SkIRect* bounds = NULL); |
237 | 237 |
238 private: | 238 private: |
239 SkNullBlitter fNullBlitter; | 239 SkNullBlitter fNullBlitter; |
240 SkRectClipBlitter fRectBlitter; | 240 SkRectClipBlitter fRectBlitter; |
241 SkRgnClipBlitter fRgnBlitter; | 241 SkRgnClipBlitter fRgnBlitter; |
242 }; | 242 }; |
243 | 243 |
244 #endif | 244 #endif |
OLD | NEW |