public void setRenderMode(RenderMode renderMode) {
    this.renderMode = renderMode;
    computeRenderMode();
  }
Call this to set whether or not to render with hardware or software acceleration.
Lottie defaults to Automatic which will use hardware acceleration unless:
1) There are dash paths and the device is pre-Pie.
2) There are more than 4 masks and mattes and the device is pre-Pie.
Hardware acceleration is generally faster for those devices unless
there are many large mattes and masks in which case there is a lot
of GPU uploadTexture thrashing which makes it much slower.
<p>
In most cases, hardware rendering will be faster, even if you have mattes and masks.
However, if you have multiple mattes and masks (especially large ones), you
should test both render modes. You should also test on pre-Pie and Pie+ devices
because the underlying rendering engine changed significantly.

@see <a href="https://developer.android.com/guide/topics/graphics/hardware-accel#unsupported">Android Hardware Acceleration</a>
lottie/src/main/java/com/airbnb/lottie/LottieDrawable.java