OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkBlitter_DEFINED | 10 #ifndef SkBlitter_DEFINED |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 */ | 54 */ |
55 virtual const SkBitmap* justAnOpaqueColor(uint32_t* value); | 55 virtual const SkBitmap* justAnOpaqueColor(uint32_t* value); |
56 | 56 |
57 /** | 57 /** |
58 * Special method just to identify the null blitter, which is returned | 58 * Special method just to identify the null blitter, which is returned |
59 * from Choose() if the request cannot be fulfilled. Default impl | 59 * from Choose() if the request cannot be fulfilled. Default impl |
60 * returns false. | 60 * returns false. |
61 */ | 61 */ |
62 virtual bool isNullBlitter() const; | 62 virtual bool isNullBlitter() const; |
63 | 63 |
64 /** | |
65 * Special methods for SkShaderBlitter. On all other classes this is a no-o
p. | |
66 */ | |
67 virtual bool resetShaderContext(const SkBitmap& device, const SkPaint& paint
, | |
68 const SkMatrix& matrix); | |
69 virtual SkShader::Context* getShaderContext() const; | |
70 | |
71 ///@name non-virtual helpers | 64 ///@name non-virtual helpers |
72 void blitMaskRegion(const SkMask& mask, const SkRegion& clip); | 65 void blitMaskRegion(const SkMask& mask, const SkRegion& clip); |
73 void blitRectRegion(const SkIRect& rect, const SkRegion& clip); | 66 void blitRectRegion(const SkIRect& rect, const SkRegion& clip); |
74 void blitRegion(const SkRegion& clip); | 67 void blitRegion(const SkRegion& clip); |
75 ///@} | 68 ///@} |
76 | 69 |
77 /** @name Factories | 70 /** @name Factories |
78 Return the correct blitter to use given the specified context. | 71 Return the correct blitter to use given the specified context. |
79 */ | 72 */ |
80 static SkBlitter* Choose(const SkBitmap& device, | 73 static SkBlitter* Choose(const SkBitmap& device, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, | 163 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, |
171 const SkIRect* bounds = NULL); | 164 const SkIRect* bounds = NULL); |
172 | 165 |
173 private: | 166 private: |
174 SkNullBlitter fNullBlitter; | 167 SkNullBlitter fNullBlitter; |
175 SkRectClipBlitter fRectBlitter; | 168 SkRectClipBlitter fRectBlitter; |
176 SkRgnClipBlitter fRgnBlitter; | 169 SkRgnClipBlitter fRgnBlitter; |
177 }; | 170 }; |
178 | 171 |
179 #endif | 172 #endif |
OLD | NEW |