diff options
| author | 2020-06-22 11:52:39 -0700 | |
|---|---|---|
| committer | 2020-06-23 18:26:00 +0000 | |
| commit | b123f47bbde4d30be44ca02fc369f6ff83dbff8f (patch) | |
| tree | e24d17047550b705298480b230e8c1ddb9328601 /libs/gui/ISurfaceComposer.cpp | |
| parent | a03e1302db3c51be1e453af179e5549468b501ab (diff) | |
Call Layer::getLayerDebugInfo from the main thread
Fixes an issue where drawing state could be accessed from a binder
thread. The function also mixed current state with drawing state
incorrectly. The function now only retrieves drawing state.
Bug: 150226608
Test: Steps in bug doesn't repro
Test: atest sffakehwc_test
Merged-In: I5537c53e8214e2785473839d71fd483d1a3219b6
Change-Id: I04daedcb9a890083cc710bab30b295e14b9872ae
Diffstat (limited to 'libs/gui/ISurfaceComposer.cpp')
| -rw-r--r-- | libs/gui/ISurfaceComposer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/gui/ISurfaceComposer.cpp b/libs/gui/ISurfaceComposer.cpp index 6c9d81ab57..60d246a884 100644 --- a/libs/gui/ISurfaceComposer.cpp +++ b/libs/gui/ISurfaceComposer.cpp @@ -610,7 +610,7 @@ public: return result; } - virtual status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const + virtual status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) { if (!outLayers) { return UNEXPECTED_NULL; |