public static void saveLayerCompat(Canvas canvas, RectF rect, Paint paint) {
    saveLayerCompat(canvas, rect, paint, Canvas.ALL_SAVE_FLAG);
  }
From http://vaibhavblogs.org/2012/12/common-java-networking-exceptions/
lottie/src/main/java/com/airbnb/lottie/utils/Utils.java