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

Unified Diff: src/core/SkStrokeRec.cpp

Issue 1048333003: Set resScale on stroker when stroking path on gpu. (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
Index: src/core/SkStrokeRec.cpp
diff --git a/src/core/SkStrokeRec.cpp b/src/core/SkStrokeRec.cpp
index c7359e51b541fa726695f59b56864acb50cb82af..b109ddb8d6110d7558087def5acd1a79ff6ddc75 100644
--- a/src/core/SkStrokeRec.cpp
+++ b/src/core/SkStrokeRec.cpp
@@ -98,6 +98,11 @@ void SkStrokeRec::setStrokeStyle(SkScalar width, bool strokeAndFill) {
}
}
+void SkStrokeRec::setResScale(SkScalar rs) {
+ SkASSERT(rs > 0 && SkScalarIsFinite(rs));
+ fResScale = rs;
+}
+
#include "SkStroke.h"
#if !defined SK_LEGACY_STROKE_CURVES && defined SK_DEBUG

Powered by Google App Engine
This is Rietveld 408576698