Disable ccpr clip atlas when --reduceOpsTaskSplitting is enabled

Bug: skia:11731
Change-Id: Ia676f0db9092596f28739dbd083d9a4bc8b67878
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/383119
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
This commit is contained in:
Chris Dalton 2021-03-10 14:44:40 -07:00
parent 9b6e30bd67
commit be54c66cdd

View File

@ -36,13 +36,16 @@ GrPathRendererChain::GrPathRendererChain(GrRecordingContext* context, const Opti
fChain.push_back(sk_make_sp<GrAAConvexPathRenderer>());
}
if (options.fGpuPathRenderers & GpuPathRenderers::kCoverageCounting) {
using AllowCaching = GrCoverageCountingPathRenderer::AllowCaching;
if (auto ccpr = GrCoverageCountingPathRenderer::CreateIfSupported(
caps, AllowCaching(options.fAllowPathMaskCaching),
context->priv().contextID())) {
fCoverageCountingPathRenderer = ccpr.get();
context->priv().addOnFlushCallbackObject(fCoverageCountingPathRenderer);
fChain.push_back(std::move(ccpr));
// opsTask IDs for the atlas have an issue with --reduceOpsTaskSplitting: skbug.com/11731
if (context->priv().options().fReduceOpsTaskSplitting != GrContextOptions::Enable::kYes) {
using AllowCaching = GrCoverageCountingPathRenderer::AllowCaching;
if (auto ccpr = GrCoverageCountingPathRenderer::CreateIfSupported(
caps, AllowCaching(options.fAllowPathMaskCaching),
context->priv().contextID())) {
fCoverageCountingPathRenderer = ccpr.get();
context->priv().addOnFlushCallbackObject(fCoverageCountingPathRenderer);
fChain.push_back(std::move(ccpr));
}
}
}
if (options.fGpuPathRenderers & GpuPathRenderers::kAAHairline) {