Drastically reduce number of projection instances we create.

Via SimplePool
This commit is contained in:
Alex Hart
2021-10-25 14:12:08 -03:00
committed by GitHub
parent 98fce53cf1
commit b34bb2e7d7
12 changed files with 145 additions and 64 deletions

View File

@@ -105,6 +105,8 @@ public final class GiphyMp4ProjectionRecycler implements GiphyMp4PlaybackControl
}
holder.setCorners(projection.getCorners());
projection.release();
}
private void startPlayback(@NonNull RecyclerView parent, @NonNull GiphyMp4ProjectionPlayerHolder holder, @NonNull GiphyMp4Playable giphyMp4Playable) {