8#ifndef skgpu_RectanizerPow2_DEFINED
9#define skgpu_RectanizerPow2_DEFINED
49 static const int kMIN_HEIGHT_POW2 = 2;
50 static const int kMaxExponent = 16;
58 bool canAddWidth(
int width,
int containerWidth)
const {
59 return fLoc.
fX +
width <= containerWidth;
63 Row fRows[kMaxExponent];
68 static int HeightToRowIndex(
int height) {
75 bool canAddStrip(
int height)
const {
79 void initRow(Row* row,
int rowHeight) {
80 row->fLoc.set(0, fNextStripY);
81 row->fRowHeight = rowHeight;
82 fNextStripY += rowHeight;
sk_bzero(glyphs, sizeof(glyphs))
static int SkCLZ(uint32_t mask)
RectanizerPow2(int w, int h)
bool addRect(int w, int h, SkIPoint16 *loc) final
float percentFull() const final
int16_t fX
x-axis value used by SkIPoint16