Lines Matching refs:Bounds
58 * (no padding, stretching, or optical bounds).
64 * or one denoting padding, stretching, or optical bounds.
80 // The secondary color is red and is used to denote optical bounds.
248 err_stream << "too many layout bounds sections on " << edge_name
263 err_stream << "layout bounds on " << edge_name
274 err_stream << "layout bounds on " << edge_name
302 static uint32_t GetRegionColor(uint8_t** rows, const Bounds& region) {
346 Bounds bounds;
352 // Offset the bounds by 1 to accommodate the border.
353 bounds.top = next_top + 1;
354 bounds.bottom = row_iter->start + 1;
358 // Offset the bounds by 1 to accommodate the border.
359 bounds.top = row_iter->start + 1;
360 bounds.bottom = row_iter->end + 1;
366 // Offset the bounds by 1 to accommodate the border.
367 bounds.top = next_top + 1;
368 bounds.bottom = height + 1;
378 // Offset the bounds by 1 to accommodate the border.
379 bounds.left = next_left + 1;
380 bounds.right = col_iter->start + 1;
384 // Offset the bounds by 1 to accommodate the border.
385 bounds.left = col_iter->start + 1;
386 bounds.right = col_iter->end + 1;
392 // Offset the bounds by 1 to accommodate the border.
393 bounds.left = next_left + 1;
394 bounds.right = width + 1;
397 out_colors->push_back(GetRegionColor(rows, bounds));
499 err_stream << "found unexpected optical bounds (red pixel) on top border "
515 err_stream << "found unexpected optical bounds (red pixel) on left border "
683 ::std::ostream& operator<<(::std::ostream& out, const Bounds& bounds) {
684 return out << "l=" << bounds.left << " t=" << bounds.top
685 << " r=" << bounds.right << " b=" << bounds.bottom;
694 << ", bounds: " << nine_patch.layout_bounds