Lines Matching defs:width
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);
587 int width = src.width();
600 if (width & 1) { // src-width is 3
602 } else { // src-width is 2
606 if (width & 1) {
607 if (width == 1) { // src-width is 1
609 } else { // src-width is 3
612 } else { // src-width is 2
617 if (width & 1) {
618 if (width == 1) { // src-width is 1
620 } else { // src-width is 3
623 } else { // src-width is 2
627 width = std::max(1, width >> 1);
629 rowBytes = SkToU32(SkColorTypeMinRowBytes(ct, width));
634 new (&levels[i].fPixmap) SkPixmap(SkImageInfo::Make(width, height, ct, at), addr, rowBytes);
635 levels[i].fScale = SkSize::Make(SkIntToScalar(width) / src.width(),
645 proc(dstBasePtr, srcBasePtr, srcRB, width);
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
710 int width = std::max(1, baseWidth >> (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) {
777 if (fLevels[0].fPixmap. width() != std::max(1, dimension. width() >> 1) ||