Lines Matching defs:height
14 static void make_bitmap(SkBitmap* bm, int width, int height) {
15 bm->allocN32Pixels(width, height);
25 int height = 1 + rand.nextU() % 1000;
26 make_bitmap(&bm, width, height);
29 REPORTER_ASSERT(reporter, mm->countLevels() == SkMipmap::ComputeLevelCount(width, height));
46 REPORTER_ASSERT(reporter, level.fPixmap.height() > 0);
51 REPORTER_ASSERT(reporter, level.fPixmap.height() <= prevLevel.fPixmap.height());
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);
76 REPORTER_ASSERT(reporter, level.fPixmap.height() == size.height());
81 int currentHeight = height / twoToTheMipLevel;
83 REPORTER_ASSERT(reporter, level.fPixmap.height() == currentHeight);
223 surf->getCanvas()->drawImageRect(img, SkRect::MakeIWH(pm.width(), pm.height()),
261 check_fails(img, img->imageInfo().makeWH(img->width() + 2, img->height() - 3));