static CloseableStaticBitmap of(
      Bitmap bitmap,
      ResourceReleaser<Bitmap> resourceReleaser,
      QualityInfo qualityInfo,
      int rotationAngle,
      int orientation) {
    if (BaseCloseableStaticBitmap.shouldUseSimpleCloseableStaticBitmap()) {
      return new BaseCloseableStaticBitmap(
          bitmap, resourceReleaser, qualityInfo, rotationAngle, orientation);
    } else {
      return new DefaultCloseableStaticBitmap(
          bitmap, resourceReleaser, qualityInfo, rotationAngle, orientation);
    }
  }
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 bitmap the bitmap to wrap
@param resourceReleaser ResourceReleaser to release the bitmap to
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/CloseableStaticBitmap.java