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 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 case SkRegion::kUnion_Op: | 1374 case SkRegion::kUnion_Op: |
1375 return unionAlphaProc; | 1375 return unionAlphaProc; |
1376 case SkRegion::kXOR_Op: | 1376 case SkRegion::kXOR_Op: |
1377 return xorAlphaProc; | 1377 return xorAlphaProc; |
1378 default: | 1378 default: |
1379 SkDEBUGFAIL("unexpected region op"); | 1379 SkDEBUGFAIL("unexpected region op"); |
1380 return sectAlphaProc; | 1380 return sectAlphaProc; |
1381 } | 1381 } |
1382 } | 1382 } |
1383 | 1383 |
1384 static const uint8_t gEmptyRow[] = { | |
1385 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, | |
1386 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, | |
1387 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, | |
1388 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, | |
1389 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, | |
1390 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, | |
1391 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, | |
1392 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, 0xFF, 0, | |
1393 }; | |
1394 | |
1395 class RowIter { | 1384 class RowIter { |
1396 public: | 1385 public: |
1397 RowIter(const uint8_t* row, const SkIRect& bounds) { | 1386 RowIter(const uint8_t* row, const SkIRect& bounds) { |
1398 fRow = row; | 1387 fRow = row; |
1399 fLeft = bounds.fLeft; | 1388 fLeft = bounds.fLeft; |
1400 fBoundsRight = bounds.fRight; | 1389 fBoundsRight = bounds.fRight; |
1401 if (row) { | 1390 if (row) { |
1402 fRight = bounds.fLeft + row[0]; | 1391 fRight = bounds.fLeft + row[0]; |
1403 SkASSERT(fRight <= fBoundsRight); | 1392 SkASSERT(fRight <= fBoundsRight); |
1404 fAlpha = row[1]; | 1393 fAlpha = row[1]; |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2169 rowMask.fBounds.fBottom = y + 1; | 2158 rowMask.fBounds.fBottom = y + 1; |
2170 fBlitter->blitMask(rowMask, rowMask.fBounds); | 2159 fBlitter->blitMask(rowMask, rowMask.fBounds); |
2171 src = (const void*)((const char*)src + srcRB); | 2160 src = (const void*)((const char*)src + srcRB); |
2172 } while (++y < localStopY); | 2161 } while (++y < localStopY); |
2173 } while (y < stopY); | 2162 } while (y < stopY); |
2174 } | 2163 } |
2175 | 2164 |
2176 const SkBitmap* SkAAClipBlitter::justAnOpaqueColor(uint32_t* value) { | 2165 const SkBitmap* SkAAClipBlitter::justAnOpaqueColor(uint32_t* value) { |
2177 return NULL; | 2166 return NULL; |
2178 } | 2167 } |
OLD | NEW |