Lines Matching defs:width
14 static void make_bitmap(SkBitmap* bm, int width, int height) {
15 bm->allocN32Pixels(width, height);
24 int width = 1 + rand.nextU() % 1000;
26 make_bitmap(&bm, width, height);
29 REPORTER_ASSERT(reporter, mm->countLevels() == SkMipmap::ComputeLevelCount(width, height));
45 REPORTER_ASSERT(reporter, level.fPixmap.width() > 0);
47 REPORTER_ASSERT(reporter, (int)level.fPixmap.rowBytes() >= level.fPixmap.width() * 4);
50 REPORTER_ASSERT(reporter, level.fPixmap.width() <= prevLevel.fPixmap.width());
59 static void test_mipmap_generation(int width, int height, int expectedMipLevelCount,
62 bm.allocN32Pixels(width, height);
68 REPORTER_ASSERT(reporter, mipLevelCount == SkMipmap::ComputeLevelCount(width, height));
74 SkISize size = SkMipmap::ComputeLevelSize(width, height, i);
75 REPORTER_ASSERT(reporter, level.fPixmap.width() == size.width());
80 int currentWidth = width / twoToTheMipLevel;
82 REPORTER_ASSERT(reporter, level.fPixmap.width() == currentWidth);
223 surf->getCanvas()->drawImageRect(img, SkRect::MakeIWH(pm.width(), pm.height()),
261 check_fails(img, img->imageInfo().makeWH(img->width() + 2, img->height() - 3));