8#ifndef skgpu_Rectanizer_DEFINED
9#define skgpu_Rectanizer_DEFINED
26 int width()
const {
return fWidth; }
27 int height()
const {
return fHeight; }
35 if (this->
addRect(width + 2*padding,
height + 2*padding, loc)) {
static Rectanizer * Factory(int width, int height)
bool addPaddedRect(int width, int height, int16_t padding, SkIPoint16 *loc)
virtual float percentFull() const =0
virtual bool addRect(int width, int height, SkIPoint16 *loc)=0
Rectanizer(int width, int height)
int16_t fY
y-axis value used by SkIPoint16
int16_t fX
x-axis value used by SkIPoint16