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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 /** | 64 /** |
65 * Special methods for SkShaderBlitter. On all other classes this is a no-o
p. | 65 * Special methods for SkShaderBlitter. On all other classes this is a no-o
p. |
66 */ | 66 */ |
67 virtual bool resetShaderContext(const SkBitmap& device, const SkPaint& paint
, | 67 virtual bool resetShaderContext(const SkShader::ContextRec&); |
68 const SkMatrix& matrix); | |
69 virtual SkShader::Context* getShaderContext() const; | 68 virtual SkShader::Context* getShaderContext() const; |
70 | 69 |
71 ///@name non-virtual helpers | 70 ///@name non-virtual helpers |
72 void blitMaskRegion(const SkMask& mask, const SkRegion& clip); | 71 void blitMaskRegion(const SkMask& mask, const SkRegion& clip); |
73 void blitRectRegion(const SkIRect& rect, const SkRegion& clip); | 72 void blitRectRegion(const SkIRect& rect, const SkRegion& clip); |
74 void blitRegion(const SkRegion& clip); | 73 void blitRegion(const SkRegion& clip); |
75 ///@} | 74 ///@} |
76 | 75 |
77 /** @name Factories | 76 /** @name Factories |
78 Return the correct blitter to use given the specified context. | 77 Return the correct blitter to use given the specified context. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, | 169 SkBlitter* apply(SkBlitter* blitter, const SkRegion* clip, |
171 const SkIRect* bounds = NULL); | 170 const SkIRect* bounds = NULL); |
172 | 171 |
173 private: | 172 private: |
174 SkNullBlitter fNullBlitter; | 173 SkNullBlitter fNullBlitter; |
175 SkRectClipBlitter fRectBlitter; | 174 SkRectClipBlitter fRectBlitter; |
176 SkRgnClipBlitter fRgnBlitter; | 175 SkRgnClipBlitter fRgnBlitter; |
177 }; | 176 }; |
178 | 177 |
179 #endif | 178 #endif |
OLD | NEW |