Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59cfc5e6 authored by Chia-I Wu's avatar Chia-I Wu Committed by android-build-merger
Browse files

Merge "surfaceflinger: clear HWC layers in Layer::onRemoved" into oc-dev

am: e256ecb5

Change-Id: I3d46760b868a0b1f4db95b8ba8de4f434292ebc9
parents 051ca32c e256ecb5
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -296,6 +296,9 @@ void Layer::onRemoved() {
    }

    mSurfaceFlingerConsumer->abandon();

    clearHwcLayers();

    for (const auto& child : mCurrentChildren) {
        child->onRemoved();
    }