Home | History | Annotate | Download | only in tests

Lines Matching refs:Level

34         SkMipMap::Level prevLevel;
41 SkMipMap::Level level;
42 if (mm->extractLevel(SkSize::Make(scale, scale), &level)) {
43 REPORTER_ASSERT(reporter, level.fPixmap.addr());
44 REPORTER_ASSERT(reporter, level.fPixmap.width() > 0);
45 REPORTER_ASSERT(reporter, level.fPixmap.height() > 0);
46 REPORTER_ASSERT(reporter, (int)level.fPixmap.rowBytes() >= level.fPixmap.width() * 4);
49 REPORTER_ASSERT(reporter, level.fPixmap.width() <= prevLevel.fPixmap.width());
50 REPORTER_ASSERT(reporter, level.fPixmap.height() <= prevLevel.fPixmap.height());
52 prevLevel = level;
69 SkMipMap::Level level;
70 REPORTER_ASSERT(reporter, mm->getLevel(i, &level));
72 REPORTER_ASSERT(reporter, level.fPixmap.addr());
74 REPORTER_ASSERT(reporter, level.fPixmap.width() == size.width());
75 REPORTER_ASSERT(reporter, level.fPixmap.height() == size.height());
77 // + 1 because SkMipMap does not include the base mipmap level.
81 REPORTER_ASSERT(reporter, level.fPixmap.width() == currentWidth);
82 REPORTER_ASSERT(reporter, level.fPixmap.height() == currentHeight);