OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 #include "SkAAClip.h" | 9 #include "SkAAClip.h" |
10 #include "SkBlitter.h" | 10 #include "SkBlitter.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 int fTop, fBottom; | 129 int fTop, fBottom; |
130 bool fDone; | 130 bool fDone; |
131 }; | 131 }; |
132 | 132 |
133 SkAAClip::Iter::Iter(const SkAAClip& clip) { | 133 SkAAClip::Iter::Iter(const SkAAClip& clip) { |
134 if (clip.isEmpty()) { | 134 if (clip.isEmpty()) { |
135 fDone = true; | 135 fDone = true; |
136 fTop = fBottom = clip.fBounds.fBottom; | 136 fTop = fBottom = clip.fBounds.fBottom; |
137 fData = NULL; | 137 fData = NULL; |
| 138 fCurrYOff = NULL; |
138 fStopYOff = NULL; | 139 fStopYOff = NULL; |
139 return; | 140 return; |
140 } | 141 } |
141 | 142 |
142 const RunHead* head = clip.fRunHead; | 143 const RunHead* head = clip.fRunHead; |
143 fCurrYOff = head->yoffsets(); | 144 fCurrYOff = head->yoffsets(); |
144 fStopYOff = fCurrYOff + head->fRowCount; | 145 fStopYOff = fCurrYOff + head->fRowCount; |
145 fData = head->data() + fCurrYOff->fOffset; | 146 fData = head->data() + fCurrYOff->fOffset; |
146 | 147 |
147 // setup first value | 148 // setup first value |
(...skipping 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2168 rowMask.fBounds.fBottom = y + 1; | 2169 rowMask.fBounds.fBottom = y + 1; |
2169 fBlitter->blitMask(rowMask, rowMask.fBounds); | 2170 fBlitter->blitMask(rowMask, rowMask.fBounds); |
2170 src = (const void*)((const char*)src + srcRB); | 2171 src = (const void*)((const char*)src + srcRB); |
2171 } while (++y < localStopY); | 2172 } while (++y < localStopY); |
2172 } while (y < stopY); | 2173 } while (y < stopY); |
2173 } | 2174 } |
2174 | 2175 |
2175 const SkBitmap* SkAAClipBlitter::justAnOpaqueColor(uint32_t* value) { | 2176 const SkBitmap* SkAAClipBlitter::justAnOpaqueColor(uint32_t* value) { |
2176 return NULL; | 2177 return NULL; |
2177 } | 2178 } |
OLD | NEW |