Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: src/gpu/effects/GrPorterDuffXferProcessor.cpp

Issue 1127693002: Remove canTweakAlphaForCoverage from XP's since batch reads flag. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/effects/GrDisableColorXP.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrPorterDuffXferProcessor.cpp
diff --git a/src/gpu/effects/GrPorterDuffXferProcessor.cpp b/src/gpu/effects/GrPorterDuffXferProcessor.cpp
index b2c81754a18bae71e2ec61c42724df25d47e9f06..506383a29ea9ce969ab103dd0d5333d4f78e8037 100644
--- a/src/gpu/effects/GrPorterDuffXferProcessor.cpp
+++ b/src/gpu/effects/GrPorterDuffXferProcessor.cpp
@@ -591,10 +591,6 @@ bool GrPorterDuffXPFactory::supportsRGBCoverage(GrColor /*knownColor*/,
return false;
}
-bool GrPorterDuffXPFactory::canTweakAlphaForCoverage() const {
- return can_tweak_alpha_for_coverage(fDstCoeff);
-}
-
void GrPorterDuffXPFactory::getInvariantOutput(const GrProcOptInfo& colorPOI,
const GrProcOptInfo& coveragePOI,
GrXPFactory::InvariantOutput* output) const {
@@ -672,7 +668,7 @@ bool GrPorterDuffXPFactory::willReadDstColor(const GrDrawTargetCaps& caps,
return false;
}
- if (this->canTweakAlphaForCoverage()) {
+ if (can_tweak_alpha_for_coverage(fDstCoeff)) {
return false;
}
« no previous file with comments | « src/gpu/effects/GrDisableColorXP.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698