• Home
  • Raw
  • Download

Lines Matching refs:yoff

101         YOffset* yoff = head->yoffsets();  in AllocRect()  local
102 yoff->fY = bounds.height() - 1; in AllocRect()
103 yoff->fOffset = 0; in AllocRect()
200 const YOffset* yoff = head->yoffsets(); in validate() local
201 const YOffset* ystop = yoff + head->fRowCount; in validate()
207 while (yoff < ystop) { in validate()
208 SkASSERT(prevY < yoff->fY); in validate()
209 SkASSERT(yoff->fY <= lastY); in validate()
210 prevY = yoff->fY; in validate()
211 SkASSERT(prevOffset < (int32_t)yoff->fOffset); in validate()
212 prevOffset = yoff->fOffset; in validate()
213 const uint8_t* row = head->data() + yoff->fOffset; in validate()
215 SkASSERT(yoff->fOffset + rowLength <= head->fDataSize); in validate()
216 yoff += 1; in validate()
219 --yoff; in validate()
220 SkASSERT(yoff->fY == lastY); in validate()
447 YOffset* yoff = head->yoffsets(); in trimLeftRight() local
448 YOffset* stop = yoff + head->fRowCount; in trimLeftRight()
456 while (yoff < stop) { in trimLeftRight()
458 count_left_right_zeros(base + yoff->fOffset, width, &L, &R); in trimLeftRight()
470 yoff += 1; in trimLeftRight()
488 yoff = head->yoffsets(); in trimLeftRight()
489 while (yoff < stop) { in trimLeftRight()
490 uint8_t* row = base + yoff->fOffset; in trimLeftRight()
492 yoff->fOffset += trim_row_left_right(row, width, leftZeros, riteZeros); in trimLeftRight()
493 SkDEBUGCODE((void)compute_row_length(base + yoff->fOffset, width - leftZeros - riteZeros);) in trimLeftRight()
494 yoff += 1; in trimLeftRight()
523 YOffset* yoff = head->yoffsets(); in trimTopBottom() local
524 YOffset* stop = yoff + head->fRowCount; in trimTopBottom()
530 while (yoff < stop) { in trimTopBottom()
531 const uint8_t* data = base + yoff->fOffset; in trimTopBottom()
536 yoff += 1; in trimTopBottom()
545 yoff = head->yoffsets(); in trimTopBottom()
546 int dy = yoff[skip - 1].fY + 1; in trimTopBottom()
548 SkASSERT(yoff[i].fY >= dy); in trimTopBottom()
549 yoff[i].fY -= dy; in trimTopBottom()
569 stop = yoff = head->yoffsets() + head->fRowCount; in trimTopBottom()
571 yoff -= 1; in trimTopBottom()
572 } while (row_is_all_zeros(base + yoff->fOffset, width)); in trimTopBottom()
573 skip = SkToInt(stop - yoff - 1); in trimTopBottom()
580 fBounds.fBottom = fBounds.fTop + yoff->fY + 1; in trimTopBottom()
603 const YOffset* yoff = head->yoffsets(); in trimBounds() local
606 const YOffset& lastY = yoff[head->fRowCount - 1]; in trimBounds()
736 const YOffset* yoff = head->yoffsets(); in isRect() local
737 if (yoff->fY != fBounds.fBottom - 1) { in isRect()
741 const uint8_t* row = head->data() + yoff->fOffset; in isRect()
876 const YOffset* yoff = fRunHead->yoffsets(); in findRow() local
877 while (yoff->fY < y) { in findRow()
878 yoff += 1; in findRow()
879 SkASSERT(yoff - fRunHead->yoffsets() < fRunHead->fRowCount); in findRow()
883 *lastYForRow = fBounds.y() + yoff->fY; in findRow()
885 return fRunHead->data() + yoff->fOffset; in findRow()