diff options
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 06a0765719..fe16b763c2 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -296,6 +296,11 @@ void Layer::onRemoved() { } mSurfaceFlingerConsumer->abandon(); + +#ifdef USE_HWC2 + clearHwcLayers(); +#endif + for (const auto& child : mCurrentChildren) { child->onRemoved(); } |