summaryrefslogtreecommitdiff
path: root/api/coverage
diff options
context:
space:
mode:
author John Reck <jreck@google.com> 2023-11-15 12:40:39 -0500
committer John Reck <jreck@google.com> 2023-11-15 19:06:13 -0500
commit6256c0f500ca852ba85c4f30579600f1b63cd4ab (patch)
tree434ff25cd6218d0c3906cba813276096f80a9343 /api/coverage
parent3b84c2ca315399696f2aab72ee9221d838923c9c (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 'api/coverage')
0 files changed, 0 insertions, 0 deletions