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

Unified Diff: src/gpu/GrClipMaskManager.cpp

Issue 1889453002: Tweak distance field path renderer behavior in gamma-correct mode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebased, plumbed gamma-correctness via DrawPathArgs, fixed typos from most recent change Created 4 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 | « include/gpu/GrPaint.h ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrClipMaskManager.cpp
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
index 2700f56986baa50136b37c193713a1c64d0d7615..7418e76449a3a2b4da775fda97e3b729aa824967 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -856,6 +856,7 @@ bool GrClipMaskManager::createStencilClipMask(GrRenderTarget* rt,
args.fPath = &clipPath;
args.fStroke = &stroke;
args.fAntiAlias = false;
+ args.fGammaCorrect = false;
pr->drawPath(args);
} else {
GrPathRenderer::StencilPathArgs args;
@@ -891,6 +892,7 @@ bool GrClipMaskManager::createStencilClipMask(GrRenderTarget* rt,
args.fPath = &clipPath;
args.fStroke = &stroke;
args.fAntiAlias = false;
+ args.fGammaCorrect = false;
pr->drawPath(args);
}
} else {
« no previous file with comments | « include/gpu/GrPaint.h ('k') | src/gpu/GrDrawContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698