@Override
    public void draw(Canvas canvas) {
        if (applyGravity) {
            Gravity.apply(BitmapState.GRAVITY, width, height, getBounds(), destRect);
            applyGravity = false;
        }
        canvas.drawBitmap(state.bitmap, null, destRect, state.paint);
    }
A static {@link GlideDrawable} for displaying a single image.
core/src/main/java/com/bumptech/glide/load/resource/bitmap/GlideBitmapDrawable.java