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

Commit ae33e1ae authored by Marissa Wall's avatar Marissa Wall
Browse files

blast: turn off surface damage

Turn off surface damage because:
1) It is causing P19 devices to not update damaged buffers. This
is probably due to a hwc bug.
2) On early pixel devices, it can cause extra work in hwc which negates
any benefits of using it in the first place. Since most of the video
layers won't have useful surface damage, the extra work isn't worth it.

Bug: 130688402
Test: Full screen Youtube video in Chrome on P19

Change-Id: Id0f7cf34c4fccf526766f7318320803ea74eba93
parent ab54fb71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -422,7 +422,7 @@ uint32_t BufferStateLayer::getDrawingScalingMode() const {
}

Region BufferStateLayer::getDrawingSurfaceDamage() const {
    return getDrawingState().surfaceDamageRegion;
    return Region::INVALID_REGION;
}

const HdrMetadata& BufferStateLayer::getDrawingHdrMetadata() const {