summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Jeremy Meyer <jakmcbane@google.com> 2023-07-27 22:49:14 +0000
committer Jeremy Meyer <jakmcbane@google.com> 2023-08-09 17:38:31 +0000
commitc04bcb390105fbddad590968d739bb317dd1baa4 (patch)
tree2983a743d9e66089bf768ebad035766bb08393a9 /libs/hwui/FrameInfoVisualizer.cpp
parent5e483b0490a0658b5204e9cbd374fa3f4dafb1b2 (diff)
Allow AssetFileDescriptors to be used to create FRROs
Before this change, if a (system) app tried to use an image from its assets to create an FRRO it would succeed but no image would display. That is because when it is an asset we have an AssetFileDescriptor which internally has a file descriptor, offset, and size and the file descriptor would point at the apk itself. When this would get passed to the native layer to create the frro only the file descriptor would get passed so we would copy the whole apk, not just the image. This allows apps to pass in an AssetFileDescriptor directly which we can then use to also pass down the offset and size to the native layer and only copy the image part. Fixes: 289739832 Test: atest FabricatedOverlayTest Change-Id: I80dceb19229a6a3c02851a5451ea6d46798981b3
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions