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

Commit 80a7a76b authored by Derek Sollenberger's avatar Derek Sollenberger
Browse files

Don't attempt to print protected context stats if it doesn't exist

Test: atest DeviceHealthChecks:com.android.devicehealthchecks.SystemCheck#system_tombstone
Bug: 185265245
Change-Id: I40af86c5c80ee4fa80fce2176ee1395595f4e762
parent 0e4c8a46
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1294,7 +1294,9 @@ void SkiaGLRenderEngine::dump(std::string& result) {
        StringAppendF(&result, "\n");

        SkiaMemoryReporter gpuProtectedReporter(gpuResourceMap, true);
        if (mProtectedGrContext) {
            mProtectedGrContext->dumpMemoryStatistics(&gpuProtectedReporter);
        }
        StringAppendF(&result, "Skia's GPU Protected Caches: ");
        gpuProtectedReporter.logTotals(result);
        gpuProtectedReporter.logOutput(result);