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

Commit d25bbf4b authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Split exception into 2 different messages" into main

parents 1237cbb1 b96e638c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -562,7 +562,11 @@ Frame CanvasContext::getFrame() {
void CanvasContext::draw(bool solelyTextureViewUpdates) {
    if (auto grContext = getGrContext()) {
        if (grContext->abandoned()) {
            LOG_ALWAYS_FATAL("GrContext is abandoned/device lost at start of CanvasContext::draw");
            if (grContext->isDeviceLost()) {
                LOG_ALWAYS_FATAL("Lost GPU device unexpectedly");
                return;
            }
            LOG_ALWAYS_FATAL("GrContext is abandoned at start of CanvasContext::draw");
            return;
        }
    }