private void setVisibilityCallback(@Nullable VisibilityCallback visibilityCallback) {
    Drawable drawable = getTopLevelDrawable();
    if (drawable instanceof VisibilityAwareDrawable) {
      ((VisibilityAwareDrawable) drawable).setVisibilityCallback(visibilityCallback);
    }
  }
Sets the visibility callback to the current top-level-drawable.
drawee/src/main/java/com/facebook/drawee/view/DraweeHolder.java