private static int getSizeInBytes(PreFillType size) {
        return Util.getBitmapByteSize(size.getWidth(), size.getHeight(), size.getConfig());
    }
A class for pre-filling {@link Bitmap Bitmaps} in a
{@link BitmapPool}.
core/src/main/java/com/bumptech/glide/load/engine/prefill/BitmapPreFiller.java