summaryrefslogtreecommitdiff
path: root/libs/ultrahdr/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Leon Scroggins III <scroggo@google.com> 2023-06-21 15:55:55 -0400
committer Leon Scroggins III <scroggo@google.com> 2023-06-22 12:07:07 -0400
commit41c00c53e2953d019e33ed7a2527b382579685c5 (patch)
treed35680dd3603a21d8780e405e00a21c97d2499e1 /libs/ultrahdr/jpegencoderhelper.cpp
parentc16c3d24b72c5ad015cf76208b9ee14fcaf075c6 (diff)
RE: Better error messages for context lost and SkiaVk
As in HWUI's CanvasContext::draw, check whether the context has been abandoned at the beginning of a frame. Previously, RE never checked for this, though it may have been responsible for other spurious failures, such as "Unable to generate SkSurface". When RE fails to generate an SkSurface/SkImage, query the backend to determine which method to call to get more information about the texture. This allows us to get meaningful information when running SkiaVk. Bug: 286058063 Test: manual - build and boot with gl and vk Test: manual - change fatal logs to ALOGD always Change-Id: I532f9073698a920619ffd665d05d8e63163366d8
Diffstat (limited to 'libs/ultrahdr/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions