Lines Matching defs:level
36 SkMipMap::Level prevLevel;
43 SkMipMap::Level level;
44 if (mm->extractLevel(SkSize::Make(scale, scale), &level)) {
45 REPORTER_ASSERT(reporter, level.fPixmap.addr());
46 REPORTER_ASSERT(reporter, level.fPixmap.width() > 0);
47 REPORTER_ASSERT(reporter, level.fPixmap.height() > 0);
48 REPORTER_ASSERT(reporter, (int)level.fPixmap.rowBytes() >= level.fPixmap.width() * 4);
51 REPORTER_ASSERT(reporter, level.fPixmap.width() <= prevLevel.fPixmap.width());
52 REPORTER_ASSERT(reporter, level.fPixmap.height() <= prevLevel.fPixmap.height());
54 prevLevel = level;
70 SkMipMap::Level level;
71 REPORTER_ASSERT(reporter, mm->getLevel(i, &level));
73 REPORTER_ASSERT(reporter, level.fPixmap.addr());
75 // + 1 because SkMipMap does not include the base mipmap level.
79 REPORTER_ASSERT(reporter, level.fPixmap.width() == currentWidth);
80 REPORTER_ASSERT(reporter, level.fPixmap.height() == currentHeight);