1bf215546Sopenharmony_cidiff --git a/tools/skqp/src/skqp.cpp b/tools/skqp/src/skqp.cpp 2bf215546Sopenharmony_ciindex 50ed9db01d..938217000d 100644 3bf215546Sopenharmony_ci--- a/tools/skqp/src/skqp.cpp 4bf215546Sopenharmony_ci+++ b/tools/skqp/src/skqp.cpp 5bf215546Sopenharmony_ci@@ -448,7 +448,7 @@ inline void write(SkWStream* wStream, const T& text) { 6bf215546Sopenharmony_ci 7bf215546Sopenharmony_ci void SkQP::makeReport() { 8bf215546Sopenharmony_ci SkASSERT_RELEASE(fAssetManager); 9bf215546Sopenharmony_ci- int glesErrorCount = 0, vkErrorCount = 0, gles = 0, vk = 0; 10bf215546Sopenharmony_ci+ int glErrorCount = 0, glesErrorCount = 0, vkErrorCount = 0, gl = 0, gles = 0, vk = 0; 11bf215546Sopenharmony_ci 12bf215546Sopenharmony_ci if (!sk_isdir(fReportDirectory.c_str())) { 13bf215546Sopenharmony_ci SkDebugf("Report destination does not exist: '%s'\n", fReportDirectory.c_str()); 14bf215546Sopenharmony_ci@@ -460,6 +460,7 @@ void SkQP::makeReport() { 15bf215546Sopenharmony_ci htmOut.writeText(kDocHead); 16bf215546Sopenharmony_ci for (const SkQP::RenderResult& run : fRenderResults) { 17bf215546Sopenharmony_ci switch (run.fBackend) { 18bf215546Sopenharmony_ci+ case SkQP::SkiaBackend::kGL: ++gl; break; 19bf215546Sopenharmony_ci case SkQP::SkiaBackend::kGLES: ++gles; break; 20bf215546Sopenharmony_ci case SkQP::SkiaBackend::kVulkan: ++vk; break; 21bf215546Sopenharmony_ci default: break; 22bf215546Sopenharmony_ci@@ -477,15 +478,17 @@ void SkQP::makeReport() { 23bf215546Sopenharmony_ci } 24bf215546Sopenharmony_ci write(&htmOut, SkStringPrintf(" f(%s);\n", str.c_str())); 25bf215546Sopenharmony_ci switch (run.fBackend) { 26bf215546Sopenharmony_ci+ case SkQP::SkiaBackend::kGL: ++glErrorCount; break; 27bf215546Sopenharmony_ci case SkQP::SkiaBackend::kGLES: ++glesErrorCount; break; 28bf215546Sopenharmony_ci case SkQP::SkiaBackend::kVulkan: ++vkErrorCount; break; 29bf215546Sopenharmony_ci default: break; 30bf215546Sopenharmony_ci } 31bf215546Sopenharmony_ci } 32bf215546Sopenharmony_ci htmOut.writeText(kDocMiddle); 33bf215546Sopenharmony_ci- write(&htmOut, SkStringPrintf("<p>gles errors: %d (of %d)</br>\n" 34bf215546Sopenharmony_ci+ write(&htmOut, SkStringPrintf("<p>gl errors: %d (of %d)</br>\n" 35bf215546Sopenharmony_ci+ "gles errors: %d (of %d)</br>\n" 36bf215546Sopenharmony_ci "vk errors: %d (of %d)</p>\n", 37bf215546Sopenharmony_ci- glesErrorCount, gles, vkErrorCount, vk)); 38bf215546Sopenharmony_ci+ glErrorCount, gl, glesErrorCount, gles, vkErrorCount, vk)); 39bf215546Sopenharmony_ci htmOut.writeText(kDocTail); 40bf215546Sopenharmony_ci SkFILEWStream unitOut(SkOSPath::Join(fReportDirectory.c_str(), kUnitTestReportPath).c_str()); 41bf215546Sopenharmony_ci SkASSERT_RELEASE(unitOut.isValid()); 42