[go: nahoru, domu]

PaintOpBuffer: Adds serializer for Skottie

This patch implements the serializer function for skottie draw ops. It
utilizes the transfer cache to avoid moving the entire skottie byte
data across IPC for every frame update.

This functionality is not included in android since android will not be
using it.

To achieve this the following modifications were also
made to the SkottieWrapper class:
  - A unique id is generated using fast hash for a given animation
    byte data.
  - Store the raw byte data in the object.
  - Modify the constructor to differentiate between serializable &
    non-serializable constructors.

Test=Added unit tests for transfer cache and paint op buffer.

Bug: 894635
Change-Id: I9fb7b5e7f761a84e6b6112d6e73e5681e9d86342
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2003809
Commit-Queue: Malay Keshav <malaykeshav@chromium.org>
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Khushal <khushalsagar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#734676}
18 files changed