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

Unified Diff: src/gpu/GrContext.cpp

Issue 1048333003: Set resScale on stroker when stroking path on gpu. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update 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 | « include/core/SkStrokeRec.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 04e3f8fa9ff16aee0b03f47eaf8b1393a3512ae9..be27e9c7c49b303d0bd51a08d56e9f83cc93fb2e 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -1451,6 +1451,7 @@ void GrContext::internalDrawPath(GrDrawTarget* target,
if (NULL == pr) {
if (!GrPathRenderer::IsStrokeHairlineOrEquivalent(*stroke, viewMatrix, NULL)) {
// It didn't work the 1st time, so try again with the stroked path
+ stroke.writable()->setResScale(SkScalarAbs(viewMatrix.getMaxScale()));
if (stroke->applyToPath(tmpPath.init(), *pathPtr)) {
pathPtr = tmpPath.get();
stroke.writable()->setFillStyle();
« no previous file with comments | « include/core/SkStrokeRec.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698