Enable the tessellation path renderer on (extended) es2
Bug: chromium:1220246 Change-Id: I0534da49a74218cd2561fbd008ca10674f029e98 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423776 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
This commit is contained in:
parent
4c886ee15a
commit
4e5f763491
@ -4037,7 +4037,8 @@ void GrGLCaps::applyDriverCorrectnessWorkarounds(const GrGLContextInfo& ctxInfo,
|
||||
ctxInfo.renderer() == GrGLRenderer::kMaliT || // Some curves appear flat on GalaxyS6.
|
||||
ctxInfo.renderer() == GrGLRenderer::kAdreno3xx ||
|
||||
ctxInfo.renderer() == GrGLRenderer::kAdreno430 ||
|
||||
ctxInfo.renderer() == GrGLRenderer::kAdreno4xx_other) { // We get garbage on Adreno405.
|
||||
ctxInfo.renderer() == GrGLRenderer::kAdreno4xx_other || // We get garbage on Adreno405.
|
||||
ctxInfo.angleBackend() == GrGLANGLEBackend::kD3D9) { // D3D9 conic strokes fail.
|
||||
fDisableTessellationPathRenderer = true;
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,9 @@ constexpr static int kAtlasMaxPathHeight = 128;
|
||||
bool GrTessellationPathRenderer::IsSupported(const GrCaps& caps) {
|
||||
return !caps.avoidStencilBuffers() &&
|
||||
caps.drawInstancedSupport() &&
|
||||
#ifdef GR_DISABLE_TESSELLATION_ON_ES2
|
||||
caps.shaderCaps()->integerSupport() &&
|
||||
#endif
|
||||
GrTessellationShader::SupportsPortableInfinity(*caps.shaderCaps()) &&
|
||||
!caps.disableTessellationPathRenderer();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user