Standardize naming on CoverageAsAlpha (rather than AlphaAsCoverage)
Also fix a spelling mistake: Coveage -> Coverage
Bug: skia:
Change-Id: I296415ca194b0805470596d297e1d815f43b404a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/201394
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/effects/GrCustomXfermode.cpp b/src/gpu/effects/GrCustomXfermode.cpp
index f69f25a..ce0d355 100644
--- a/src/gpu/effects/GrCustomXfermode.cpp
+++ b/src/gpu/effects/GrCustomXfermode.cpp
@@ -355,13 +355,13 @@
*/
if (can_use_hw_blend_equation(fHWBlendEquation, coverage, caps)) {
if (caps.blendEquationSupport() == GrCaps::kAdvancedCoherent_BlendEquationSupport) {
- return AnalysisProperties::kCompatibleWithAlphaAsCoverage;
+ return AnalysisProperties::kCompatibleWithCoverageAsAlpha;
} else {
- return AnalysisProperties::kCompatibleWithAlphaAsCoverage |
+ return AnalysisProperties::kCompatibleWithCoverageAsAlpha |
AnalysisProperties::kRequiresNonOverlappingDraws;
}
}
- return AnalysisProperties::kCompatibleWithAlphaAsCoverage |
+ return AnalysisProperties::kCompatibleWithCoverageAsAlpha |
AnalysisProperties::kReadsDstInShader;
}
diff --git a/src/gpu/effects/GrDisableColorXP.h b/src/gpu/effects/GrDisableColorXP.h
index 287e988..5e52264 100644
--- a/src/gpu/effects/GrDisableColorXP.h
+++ b/src/gpu/effects/GrDisableColorXP.h
@@ -32,7 +32,7 @@
const GrProcessorAnalysisCoverage&,
const GrCaps&,
GrClampType) const override {
- return AnalysisProperties::kCompatibleWithAlphaAsCoverage |
+ return AnalysisProperties::kCompatibleWithCoverageAsAlpha |
AnalysisProperties::kIgnoresInputColor;
}
diff --git a/src/gpu/effects/GrPorterDuffXferProcessor.cpp b/src/gpu/effects/GrPorterDuffXferProcessor.cpp
index 060fb36..5b72269 100644
--- a/src/gpu/effects/GrPorterDuffXferProcessor.cpp
+++ b/src/gpu/effects/GrPorterDuffXferProcessor.cpp
@@ -804,7 +804,7 @@
}
if (formula.canTweakAlphaForCoverage() && !isLCD) {
- props |= AnalysisProperties::kCompatibleWithAlphaAsCoverage;
+ props |= AnalysisProperties::kCompatibleWithCoverageAsAlpha;
}
if (isLCD) {