Add path renderer selection spew

Change-Id: If39963605dfa24cc14548e2abdd965ad55a1a561
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/284736
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
This commit is contained in:
Robert Phillips 2020-04-21 10:39:02 -04:00 committed by Skia Commit-Bot
parent ba7f22954d
commit d81379d5aa
3 changed files with 12 additions and 0 deletions

View File

@ -902,6 +902,12 @@ GrPathRenderer* GrDrawingManager::getPathRenderer(const GrPathRenderer::CanDrawP
}
}
#if GR_PATH_RENDERER_SPEW
if (pr) {
SkDebugf("getPathRenderer: %s\n", pr->name());
}
#endif
return pr;
}

View File

@ -18,6 +18,9 @@
#include "src/gpu/GrResourceCache.h"
#include "src/gpu/text/GrTextContext.h"
// Enabling this will print out which path renderers are being chosen
#define GR_PATH_RENDERER_SPEW 0
class GrCoverageCountingPathRenderer;
class GrOnFlushCallbackObject;
class GrOpFlushState;

View File

@ -2437,6 +2437,9 @@ void GrRenderTargetContext::drawShapeUsingPathRenderer(const GrClip& clip,
pr = this->drawingManager()->getPathRenderer(canDrawArgs, true, kType);
} else {
pr = this->drawingManager()->getSoftwarePathRenderer();
#if GR_PATH_RENDERER_SPEW
SkDebugf("falling back to: %s\n", pr->name());
#endif
}
}