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

Unified Diff: src/gpu/GrContext.cpp

Issue 919683002: Remove canApplyCoverage from XP and all related functions in gpu code. (Closed) Base URL: https://skia.googlesource.com/skia.git@pdDstCopy
Patch Set: Created 5 years, 10 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
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 7a910c5744662626cc0b0f7eed5eb0aa44468cbe..4c3e236818de9ce619539e903f2e89a07fb046b5 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -486,14 +486,6 @@ static bool apply_aa_to_rect(GrDrawTarget* target,
SkScalar strokeWidth,
const SkMatrix& combinedMatrix,
GrColor color) {
- if (!pipelineBuilder->canTweakAlphaForCoverage() &&
- !pipelineBuilder->canUseFracCoveragePrimProc(color, *target->caps())) {
-#ifdef SK_DEBUG
- //SkDebugf("Turning off AA to correctly apply blend.\n");
-#endif
- return false;
- }
-
if (pipelineBuilder->getRenderTarget()->isMultisampled()) {
return false;
}
@@ -889,11 +881,6 @@ static bool is_nested_rects(GrDrawTarget* target,
return false;
}
- if (!pipelineBuilder->canTweakAlphaForCoverage() &&
- !pipelineBuilder->canUseFracCoveragePrimProc(color, *target->caps())) {
- return false;
- }
-
SkPath::Direction dirs[2];
if (!path.isNestedRects(rects, dirs)) {
return false;
@@ -1027,8 +1014,7 @@ void GrContext::internalDrawPath(GrDrawTarget* target,
// aa. If we have some future driver-mojo path AA that can do the right
// thing WRT to the blend then we'll need some query on the PR.
bool useCoverageAA = useAA &&
- !pipelineBuilder->getRenderTarget()->isMultisampled() &&
- pipelineBuilder->canUseFracCoveragePrimProc(color, *target->caps());
+ !pipelineBuilder->getRenderTarget()->isMultisampled();
GrPathRendererChain::DrawType type =

Powered by Google App Engine
This is Rietveld 408576698