| 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 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 SkAlpha leftAlpha, SkAlpha rightAlpha) override { | 1290 SkAlpha leftAlpha, SkAlpha rightAlpha) override { |
| 1291 this->recordMinY(y); | 1291 this->recordMinY(y); |
| 1292 this->checkForYGap(y); | 1292 this->checkForYGap(y); |
| 1293 fBuilder->addAntiRectRun(x, y, width, height, leftAlpha, rightAlpha); | 1293 fBuilder->addAntiRectRun(x, y, width, height, leftAlpha, rightAlpha); |
| 1294 fLastY = y + height - 1; | 1294 fLastY = y + height - 1; |
| 1295 } | 1295 } |
| 1296 | 1296 |
| 1297 void blitMask(const SkMask&, const SkIRect& clip) override | 1297 void blitMask(const SkMask&, const SkIRect& clip) override |
| 1298 { unexpected(); } | 1298 { unexpected(); } |
| 1299 | 1299 |
| 1300 const SkBitmap* justAnOpaqueColor(uint32_t*) override { | 1300 const SkPixmap* justAnOpaqueColor(uint32_t*) override { |
| 1301 return NULL; | 1301 return NULL; |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 void blitH(int x, int y, int width) override { | 1304 void blitH(int x, int y, int width) override { |
| 1305 this->recordMinY(y); | 1305 this->recordMinY(y); |
| 1306 this->checkForYGap(y); | 1306 this->checkForYGap(y); |
| 1307 fBuilder->addRun(x, y, 0xFF, width); | 1307 fBuilder->addRun(x, y, 0xFF, width); |
| 1308 } | 1308 } |
| 1309 | 1309 |
| 1310 virtual void blitAntiH(int x, int y, const SkAlpha alpha[], | 1310 virtual void blitAntiH(int x, int y, const SkAlpha alpha[], |
| (...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2212 do { | 2212 do { |
| 2213 mergeProc(src, width, row, initialCount, rowMask.fImage); | 2213 mergeProc(src, width, row, initialCount, rowMask.fImage); |
| 2214 rowMask.fBounds.fTop = y; | 2214 rowMask.fBounds.fTop = y; |
| 2215 rowMask.fBounds.fBottom = y + 1; | 2215 rowMask.fBounds.fBottom = y + 1; |
| 2216 fBlitter->blitMask(rowMask, rowMask.fBounds); | 2216 fBlitter->blitMask(rowMask, rowMask.fBounds); |
| 2217 src = (const void*)((const char*)src + srcRB); | 2217 src = (const void*)((const char*)src + srcRB); |
| 2218 } while (++y < localStopY); | 2218 } while (++y < localStopY); |
| 2219 } while (y < stopY); | 2219 } while (y < stopY); |
| 2220 } | 2220 } |
| 2221 | 2221 |
| 2222 const SkBitmap* SkAAClipBlitter::justAnOpaqueColor(uint32_t* value) { | 2222 const SkPixmap* SkAAClipBlitter::justAnOpaqueColor(uint32_t* value) { |
| 2223 return NULL; | 2223 return NULL; |
| 2224 } | 2224 } |
| OLD | NEW |