private CloseableReference<CloseableImage> postprocessInternal(CloseableImage sourceImage) {
      CloseableStaticBitmap staticBitmap = (CloseableStaticBitmap) sourceImage;
      Bitmap sourceBitmap = staticBitmap.getUnderlyingBitmap();
      CloseableReference<Bitmap> bitmapRef = mPostprocessor.process(sourceBitmap, mBitmapFactory);
      int rotationAngle = staticBitmap.getRotationAngle();
      int exifOrientation = staticBitmap.getExifOrientation();
      try {
        CloseableStaticBitmap closeableStaticBitmap =
            CloseableStaticBitmap.of(
                bitmapRef, sourceImage.getQualityInfo(), rotationAngle, exifOrientation);
        closeableStaticBitmap.putExtras(staticBitmap.getExtras());
        return CloseableReference.<CloseableImage>of(closeableStaticBitmap);
      } finally {
        CloseableReference.closeSafely(bitmapRef);
      }
    }
Performs postprocessing and takes care of scheduling.
imagepipeline/src/main/java/com/facebook/imagepipeline/producers/PostprocessorProducer.java