Layers: factor out repeated code and remove redundancies
Simplify by
- Moving transform parsing to QLayer, since all subclasses need it
- Remove "maskProperties" parsing: It is not supported, and the
parsing does not match the lottie documentation anyway
- Remove "trim" and "shapes" parsing from image layer: Per Lottie
documentation, image layers can not contain such properties.
- Move the main part of the render() code to QLayer, so subclasses can
reuse it instead of repeating.
Change-Id: I386430dca9eb23cba0ca26bdb3e060057c295759
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>