diff options
| author | 2023-11-15 12:40:39 -0500 | |
|---|---|---|
| committer | 2023-11-15 13:39:55 -0500 | |
| commit | 859af0d1a76ed19afb1850a535cfa404c9a957cf (patch) | |
| tree | 370d76f649bb3ac193bd8cbb67d7278a8dd7b4b3 /libs/androidfw/ObbFile.cpp | |
| parent | c64add5fbce5a1211b77d0cc7cc2e3969f402f03 (diff) | |
Only use the gainmap shader if we might need it
Skip using the gainmap shader when drawing to a bitmap
with a known SDR colorspace as it'll be a no-op in
rendering results since W=1.0, but it'll be very expensive
in runtime due to CPU evaluation of the SKSL shader.
Before:
createScaledBitmapWithGainmap_median (ns): 179,455,037
After:
createScaledBitmapWithGainmap_median (ns): 15,643,742
Bug: 311085927
Test: benchmark in CL
Change-Id: I3f2506a2bd86bbe29c6e0837d31e4a231a7c182a
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions