Home | History | Annotate | Download | only in core

Lines Matching refs:Level

78 //  To produce each mip level, we need to filter down by 1/2 (e.g. 100x100 -> 50,50)
79 // If the starting dimension is odd, we floor the size of the lower level (e.g. 101 -> 50)
184 int64_t size = sk_64_mul(levelCount + 1, sizeof(Level)) + pixelSize;
274 mipmap->fLevels = (Level*)mipmap->writable_data();
276 Level* levels = mipmap->fLevels;
326 // OpenGL's spec requires that each mipmap level have height/width equal to
328 // (or original_width) where i is the mipmap level.
354 // SkMipMap does not include the base mip level.
356 // This is because the image used to create SkMipMap is the base level.
357 // So subtract 1 from the mip level count.
367 bool SkMipMap::extractLevel(const SkSize& scaleSize, Level* levelPtr) const {
394 int level = SkScalarFloorToInt(L);
395 // SkDebugf("mipmap scale=%g L=%g level=%d rndLevel=%d\n", scale, L, level, rndLevel);
397 SkASSERT(level >= 0);
398 if (level <= 0) {
402 if (level > fCount) {
403 level = fCount;
406 *levelPtr = fLevels[level - 1];
430 bool SkMipMap::getLevel(int index, Level* levelPtr) const {