From d547fb602d3fd970882c3fa39464ec48bc6c4d5d Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Fri, 19 May 2017 14:11:06 -0400 Subject: [PATCH] Comment out lcd assert to make GLPrograms test happy TBR=bsalomon@google.com Bug: skia:6661 Change-Id: I944d05c31d3d5511f3c1679c9eb689dbcfbbb109 Reviewed-on: https://skia-review.googlesource.com/17399 Reviewed-by: Greg Daniel Reviewed-by: Brian Salomon Commit-Queue: Greg Daniel --- src/gpu/glsl/GrGLSLXferProcessor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gpu/glsl/GrGLSLXferProcessor.cpp b/src/gpu/glsl/GrGLSLXferProcessor.cpp index 52656b1..ba5b5da 100644 --- a/src/gpu/glsl/GrGLSLXferProcessor.cpp +++ b/src/gpu/glsl/GrGLSLXferProcessor.cpp @@ -125,7 +125,10 @@ void GrGLSLXferProcessor::DefaultCoverageModulation(GrGLSLXPFragmentBuilder* fra const GrXferProcessor& proc) { if (proc.dstReadUsesMixedSamples()) { if (srcCoverage) { - SkASSERT(!proc.isLCD()); + // TODO: Once we are no longer using legacy mesh ops, it will not be possible to even + // create a mixed sample with lcd so we can uncomment the below assert. In practice + // today this never happens except for GLPrograms test which can make one. skia:6661 + // SkASSERT(!proc.isLCD()); fragBuilder->codeAppendf("%s *= %s;", outColor, srcCoverage); fragBuilder->codeAppendf("%s = %s;", outColorSecondary, srcCoverage); } else { -- 2.7.4