Commit 41dc7417 authored by Isaac Chai's avatar Isaac Chai
Browse files

Scaled bitmap for perf improvements

Turned out the bottle neck was in bitmap blip (copy) during #setPixels
call in buffer. For perf improvements here we're scaling bitmaps down
and scale up during canvas drawBitmap. This lowers rendering (10 buttons
animating) from 110ms down to ~30ms.

Bugs: 72445494
Test: Screenshot test + manual verification

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