Commit 304d0576 authored by Isaac Chai's avatar Isaac Chai Committed by Jerome Gaillard
Browse files

Attempt to add Image Pool in LayoutLib

This is in a sense simplified version of ImagePool from Android Studio.
Some differences were introduced to simplify the logic while others were added features.

Removed dispose from Image all together as well as assert.
Fragmentation prevention attempt was added, and is controlled through policy.

Many unit tests were added.

Bug: 74062470
Test: Unit tests passes + manually copied .jar and ran android studio design tool

Change-Id: Ie32e61fe65494c8f46f6b006e92d102e1cae95da
(cherry picked from commit 4deb863069ce756a9b674208027cf4669cb056ed)
parent ddc1f1d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment