summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Shuzhen Wang <shuzhenwang@google.com> 2024-09-25 23:04:33 -0700
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2024-10-02 01:57:01 +0000
commita52f68e387d6102873c474e4177fc65034dd25b8 (patch)
tree6dfcb7a24c4b7fac03b72d135fb4d6b0e4650d81 /libs/hwui/FrameInfoVisualizer.cpp
parente1d1b662540e1443d31d24f2a460514b54e1a9b3 (diff)
ImageWriter: Check Surface is valid before use
For some reason, getProducer() returns a nullptr even though the JNI context is valid. The only explanation is that ~JNIImageWriterContext is called right before ImageWriter_attachAndQueueImage(). When ImageWriter_attachAndQueueImage() is called, the context is still valid even though mProducer is already cleared. Flag: EXEMPT bug-fix Test: ImageWriterTest Bug: 362116761 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7f974147592c4d3242a5ae6fca70b2ed079912ea) Merged-In: Id24e7fc7ac63e703146337690f42df99e3daac5b Change-Id: Id24e7fc7ac63e703146337690f42df99e3daac5b
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions