Disable CCPR while we sort out clipping

The current usage of CCPR by clipping code is suboptimal. This is
causing regressions on the bots and projects like Flutter that make
heavy use of clipPath. Disabling CCPR while we fix it up.

Bug: skia:7190
Bug: flutter:12839
Change-Id: I03af5249b53cf2eab5a13d85a5f87708030c8666
Reviewed-on: https://skia-review.googlesource.com/67920
Reviewed-by: Derek Sollenberger <djsollen@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
This commit is contained in:
Chris Dalton 2017-11-03 23:09:34 -06:00 committed by Skia Commit-Bot
parent 9f545bc18a
commit e4aa0c4207
2 changed files with 3 additions and 5 deletions

View File

@ -804,7 +804,9 @@ enum class GpuPathRenderers {
kTessellating = 1 << 7,
kAll = (kTessellating | (kTessellating - 1)),
kDefault = kAll
// Temporarily disabling CCPR while we sort out issues with clipping.
kDefault = kAll & ~kCoverageCounting,
};
/**

View File

@ -23,9 +23,6 @@ using DrawPathsOp = GrCoverageCountingPathRenderer::DrawPathsOp;
using ScissorMode = GrCCPRCoverageOpsBuilder::ScissorMode;
bool GrCoverageCountingPathRenderer::IsSupported(const GrCaps& caps) {
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
return false;
#else
const GrShaderCaps& shaderCaps = *caps.shaderCaps();
return shaderCaps.geometryShaderSupport() &&
shaderCaps.texelBufferSupport() &&
@ -37,7 +34,6 @@ bool GrCoverageCountingPathRenderer::IsSupported(const GrCaps& caps) {
caps.isConfigRenderable(kAlpha_half_GrPixelConfig, /*withMSAA=*/false) &&
GrCaps::kNone_MapFlags != caps.mapBufferFlags() &&
!caps.blacklistCoverageCounting();
#endif // SK_BUILD_FOR_ANDROID_FRAMEWORK
}
sk_sp<GrCoverageCountingPathRenderer>