Lines Matching defs:height
551 if (src.width() <= 1 && src.height() <= 1) {
556 int countLevels = ComputeLevelCount(src.width(), src.height());
558 SkISize mipSize = ComputeLevelSize(src.width(), src.height(), currentMipLevel);
588 int height = src.height();
598 if (height & 1) {
599 if (height == 1) { // src-height is 1
605 } else { // src-height is 3
616 } else { // src-height is 2
628 height = std::max(1, height >> 1);
634 new (&levels[i].fPixmap) SkPixmap(SkImageInfo::Make(width, height, ct, at), addr, rowBytes);
636 SkIntToScalar(height) / src.height());
644 for (int y = 0; y < height; y++) {
651 addr += height * rowBytes;
664 // OpenGL's spec requires that each mipmap level have height/width equal to
702 // OpenGL's spec requires that each mipmap level have height/width equal to
711 int height = std::max(1, baseHeight >> (level + 1));
713 return SkISize::Make(width, height);
721 SkASSERT(scaleSize.width() >= 0 && scaleSize.height() >= 0);
725 const SkScalar scale = std::min(scaleSize.width(), scaleSize.height());
730 const SkScalar scale = SkScalarSqrt(scaleSize.width() * scaleSize.height());
773 if (dimension.width() <= 1 && dimension.height() <= 1) {
778 fLevels[0].fPixmap.height() != std::max(1, dimension.height() >> 1)) {