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

Unified Diff: src/gpu/batches/GrStencilAndCoverPathRenderer.cpp

Issue 1442513002: Fix mixed sampled inverse path fills (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrStencilAndCoverPathRenderer.cpp
diff --git a/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp b/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp
index c96e2074c56136f2bbe04b16da979c16dcc10026..a11d2b468345120c3b499a5877aa812c016c2edd 100644
--- a/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp
+++ b/src/gpu/batches/GrStencilAndCoverPathRenderer.cpp
@@ -135,6 +135,9 @@ bool GrStencilAndCoverPathRenderer::onDrawPath(const DrawPathArgs& args) {
}
}
const SkMatrix& viewM = viewMatrix.hasPerspective() ? SkMatrix::I() : viewMatrix;
+ if (pipelineBuilder->getRenderTarget()->hasMixedSamples()) {
+ pipelineBuilder->disableState(GrPipelineBuilder::kHWAntialias_Flag);
+ }
args.fTarget->drawNonAARect(*pipelineBuilder, args.fColor, viewM, bounds, invert);
Chris Dalton 2015/11/12 02:28:02 Is "drawNonAARect" more of a perf hint, that says
bsalomon 2015/11/12 16:39:32 It's supposed to be strict. It's often used to dra
} else {
GR_STATIC_CONST_SAME_STENCIL(kStencilPass,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698