public int getSize() {
        if (bitmapResource != null) {
            return bitmapResource.getSize();
        } else {
            return gifResource.getSize();
        }
    }
Returns the size of the wrapped resource.
core/src/main/java/com/bumptech/glide/load/resource/gifbitmap/GifBitmapWrapper.java