diff options
Diffstat (limited to 'src/gpu/GrProcessorAnalysis.cpp')
-rw-r--r-- | src/gpu/GrProcessorAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrProcessorAnalysis.cpp b/src/gpu/GrProcessorAnalysis.cpp index e22f4c22a4..1d58870865 100644 --- a/src/gpu/GrProcessorAnalysis.cpp +++ b/src/gpu/GrProcessorAnalysis.cpp @@ -30,7 +30,7 @@ GrColorFragmentProcessorAnalysis::GrColorFragmentProcessorAnalysis( if (fKnowOutputColor && fp->hasConstantOutputForConstantInput(fLastKnownOutputColor, &fLastKnownOutputColor)) { ++fProcessorsToEliminate; - fIsOpaque = fLastKnownOutputColor.fA >= 1.0f; + fIsOpaque = fLastKnownOutputColor.isOpaque(); // We reset these since the caller is expected to not use the earlier fragment // processors. fCompatibleWithCoverageAsAlpha = true; |