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

Unified Diff: src/core/SkDistanceFieldGen.h

Issue 1643143002: Generate Signed Distance Field directly from vector path (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove get direction and add text SDF support Created 4 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/core/SkDistanceFieldGen.h
diff --git a/src/core/SkDistanceFieldGen.h b/src/core/SkDistanceFieldGen.h
index 4a09ace107f16c241fdaeddbd084e5a89f952126..4122b6b620454eac55e29918e15c008f87d74d71 100644
--- a/src/core/SkDistanceFieldGen.h
+++ b/src/core/SkDistanceFieldGen.h
@@ -20,7 +20,7 @@
// for the fragment shader
// The distance field is constructed as unsigned char values, so that the zero value is at 128,
-// and the range is [-4, 4 - 1/255). Hence our multiplier is 8 - 1/32 and zero threshold is 128/255.
+// and the range is [-4, 4 * (1 - 1/128) ). Hence our multiplier is 8 - 1/32 and zero threshold is 128/255.
#define SK_DistanceFieldMultiplier "7.96875"
#define SK_DistanceFieldThreshold "0.50196078431"
« no previous file with comments | « gyp/gpu.gypi ('k') | src/core/SkDistanceFieldGen.cpp » ('j') | src/core/SkDistanceFieldGen.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698