@Override
void draw(GLShader shader, InternalTransform xform, int tint,
float dx, float dy, float dw, float dh, float sx, float sy, float sw, float sh) {
if (repeatX || repeatY) {
super.draw(shader, xform, tint, dx, dy, dw, dh, sx, sy, sw, sh);
} else {
float texWidth = (tex > 0) ? width : parent.width();
float texHeight = (tex > 0) ? height : parent.height();
sx += x();
sy += y();
parent.drawImpl(shader, xform, ensureTexture(), tint, dx, dy, dw, dh,
sx / texWidth, sy / texHeight, (sx + sw) / texWidth, (sy + sh) / texHeight);
}
}