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

Commit 27ddcb55 authored by Lloyd Pique's avatar Lloyd Pique
Browse files

SF: Simplify initialization after a ui::Size fix

Removes a TODO about waiting for the bug to be fixed.

Bug: 149495759
Test: atest libsurfaceflinger_unittest
Change-Id: Iada825d7501bf9bee3d99afb8802413eb6371492
parent 7b53afec
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -183,10 +183,7 @@ void FramebufferSurface::onFrameCommitted() {
}

ui::Size FramebufferSurface::limitFramebufferSize(uint32_t width, uint32_t height) {
    // TODO(b/149495759): Use the ui::Size constructor once it no longer is broken.
    ui::Size framebufferSize;
    framebufferSize.width = width;
    framebufferSize.height = height;
    ui::Size framebufferSize(width, height);
    bool wasLimited = true;
    if (width > mMaxWidth && mMaxWidth != 0) {
        float aspectRatio = float(width) / float(height);