private synchronized boolean setRunningIfDirtyAndNotRunning() {
      if (!mIsClosed
          && mIsDirty
          && !mIsPostProcessingRunning
          && CloseableReference.isValid(mSourceImageRef)) {
        mIsPostProcessingRunning = true;
        return true;
      }
      return false;
    }
Performs postprocessing and takes care of scheduling.
imagepipeline/src/main/java/com/facebook/imagepipeline/producers/PostprocessorProducer.java