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

Commit b451d874 authored by Nick Desaulniers's avatar Nick Desaulniers
Browse files

[frameworks][base][hwui] re-fix -Wimplicit-int-float-conversion



A new instance snuck in since I haven't completed the platform toolchain
upgrade yet. There was imprecision in this call; accept it by making the
implicit cast explicit.

Bug: 139945549
Test: mm
Change-Id: Id704d9741b480eba4cf3955e70119d935776faf6
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
parent 2b041061
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -479,7 +479,8 @@ void CanvasContext::draw() {
        if (didDraw) {
            swap.damage = windowDirty;
        } else {
            swap.damage = SkRect::MakeWH(INT_MAX, INT_MAX);
            float max = static_cast<float>(INT_MAX);
            swap.damage = SkRect::MakeWH(max, max);
        }
        swap.swapCompletedTime = systemTime(SYSTEM_TIME_MONOTONIC);
        swap.vsyncTime = mRenderThread.timeLord().latestVsync();