static CloseableStaticBitmap of(
      CloseableReference<Bitmap> bitmapReference,
      QualityInfo qualityInfo,
      int rotationAngle,
      int exifOrientation) {
    if (BaseCloseableStaticBitmap.shouldUseSimpleCloseableStaticBitmap()) {
      return new BaseCloseableStaticBitmap(
          bitmapReference, qualityInfo, rotationAngle, exifOrientation);
    } else {
      return new DefaultCloseableStaticBitmap(
          bitmapReference, qualityInfo, rotationAngle, exifOrientation);
    }
  }
Creates a new instance of a CloseableStaticBitmap from an existing CloseableReference. The
CloseableStaticBitmap will hold a reference to the Bitmap until it's closed.

@param bitmapReference the bitmap reference.
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/CloseableStaticBitmap.java