Comment out lcd assert to make GLPrograms test happy
authorGreg Daniel <egdaniel@google.com>
Fri, 19 May 2017 18:11:06 +0000 (14:11 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 19 May 2017 18:32:52 +0000 (18:32 +0000)
TBR=bsalomon@google.com

Bug: skia:6661
Change-Id: I944d05c31d3d5511f3c1679c9eb689dbcfbbb109
Reviewed-on: https://skia-review.googlesource.com/17399
Reviewed-by: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>

src/gpu/glsl/GrGLSLXferProcessor.cpp

index 52656b181ccaabebf1bfd24a538b36aac82e4c68..ba5b5dacae6e3ad16d82393964ce779cff03b8ea 100644 (file)
@@ -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 {