public:
virtual ~SkBlitter();
- /// Blit a horizontal run of zero or more pixels.
+ /// Blit a horizontal run of one or more pixels.
virtual void blitH(int x, int y, int width);
/// Blit a horizontal run of antialiased pixels; runs[] is a *sparse*
/// zero-terminated run-length encoding of spans of constant alpha values.
const int16_t runs[]);
/// Blit a vertical run of pixels with a constant alpha value.
virtual void blitV(int x, int y, int height, SkAlpha alpha);
- /// Blit a solid rectangle zero or more pixels wide.
+ /// Blit a solid rectangle one or more pixels wide.
virtual void blitRect(int x, int y, int width, int height);
/** Blit a rectangle with one alpha-blended column on the left,
width (zero or more) opaque pixels, and one alpha-blended column
}
void SkBlitter::blitRect(int x, int y, int width, int height) {
- SkASSERT(width >= 0);
+ SkASSERT(width > 0);
while (--height >= 0) {
this->blitH(x, y++, width);
}
void SkBlitter::blitAntiRect(int x, int y, int width, int height,
SkAlpha leftAlpha, SkAlpha rightAlpha) {
this->blitV(x++, y, height, leftAlpha);
- if (width >= 0) {
+ if (width > 0) {
this->blitRect(x, y, width, height);
x += width;
}