Home | History | Annotate | Download | only in tests

Lines Matching refs:SkMipMap

9 #include "SkMipMap.h"
26 sk_sp<SkMipMap> mm(SkMipMap::Build(bm, nullptr));
28 REPORTER_ASSERT(reporter, mm->countLevels() == SkMipMap::ComputeLevelCount(width, height));
34 SkMipMap::Level prevLevel;
41 SkMipMap::Level level;
63 sk_sp<SkMipMap> mm(SkMipMap::Build(bm, nullptr));
67 REPORTER_ASSERT(reporter, mipLevelCount == SkMipMap::ComputeLevelCount(width, height));
69 SkMipMap::Level level;
73 SkISize size = SkMipMap::ComputeLevelSize(width, height, i);
77 // + 1 because SkMipMap does not include the base mipmap level.
89 // SkMipMap current requires the dimensions be greater than 2x2
93 sk_sp<SkMipMap> mm(SkMipMap::Build(bm, nullptr));
123 // (SkMipMap::Build requires a min size of 1)
153 int levelCount = SkMipMap::ComputeLevelCount(currentTest.fWidth, currentTest.fHeight);
173 // (SkMipMap::Build requires a min size of 1)
199 SkISize levelSize = SkMipMap::ComputeLevelSize(currentTest.fBaseWidth,
210 sk_sp<SkMipMap> mipmap(SkMipMap::Build(bmp, nullptr));