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:
parent
ba7f22954d
commit
d81379d5aa
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user