Home | History | Annotate | Download | only in compile

Lines Matching refs:rows

136   explicit HorizontalImageLine(uint8_t** rows, int32_t xoffset, int32_t yoffset,
138 : rows_(rows), xoffset_(xoffset), yoffset_(yoffset), length_(length) {}
159 explicit VerticalImageLine(uint8_t** rows, int32_t xoffset, int32_t yoffset,
161 : rows_(rows), xoffset_(xoffset), yoffset_(yoffset), length_(length) {}
178 explicit DiagonalImageLine(uint8_t** rows, int32_t xoffset, int32_t yoffset,
180 : rows_(rows),
302 static uint32_t GetRegionColor(uint8_t** rows, const Bounds& region) {
305 NinePatch::PackRGBA(rows[region.top] + region.left * 4);
307 const uint8_t* row = rows[y];
334 // Note that the rows contain the 9-patch 1px border, and the indices in the
336 // already offset to exclude the border. This means that each time the rows are
342 uint8_t** rows, const std::vector<Range>& horizontal_stretch_regions,
397 out_colors->push_back(GetRegionColor(rows, bounds));
460 std::unique_ptr<NinePatch> NinePatch::Create(uint8_t** rows,
476 if (rows[0][3] == 0) {
478 } else if (PackRGBA(rows[0]) == kColorOpaqueWhite) {
489 HorizontalImageLine top_row(rows, 0, 0, width);
505 VerticalImageLine left_col(rows
520 HorizontalImageLine bottom_row(rows, 0, height - 1, width);
534 VerticalImageLine right_col(rows, width - 1, 0, height);
559 CalculateRegionColors(rows, nine_patch->horizontal_stretch_regions,
566 HorizontalImageLine mid_row(rows, 1, height / 2, width - 2);
571 VerticalImageLine mid_col(rows, width / 2, 1, height - 2);
582 rows, 1 + nine_patch->outline.left,
585 rows, 1 + nine_patch->outline.left + (outline_width / 2),
592 DiagonalImageLine diagonal(rows, 1 + nine_patch->outline.left,