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

Unified Diff: gm/dftext.cpp

Issue 1013773002: Fix SDF gradient calculation for non-uniform xforms (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Missed a comment Created 5 years, 9 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: gm/dftext.cpp
diff --git a/gm/dftext.cpp b/gm/dftext.cpp
index 6544e891c9da25a73508c17ea4f1d9c2ed0d740a..c924c1a3de651f371241f56290fba6473c13f416 100755
--- a/gm/dftext.cpp
+++ b/gm/dftext.cpp
@@ -196,6 +196,22 @@ protected:
y += paint.getFontMetrics(NULL);
}
+ // check skew
+ {
+ paint.setLCDRenderText(false);
+ SkAutoCanvasRestore acr(canvas, true);
+ canvas->skew(0.0f, 0.151515f);
+ paint.setTextSize(32);
+ canvas->drawText(text, textLen, 750, 70, paint);
+ }
+ {
+ paint.setLCDRenderText(true);
+ SkAutoCanvasRestore acr(canvas, true);
+ canvas->skew(0.5f, 0.0f);
+ paint.setTextSize(32);
+ canvas->drawText(text, textLen, 580, 230, paint);
+ }
+
// check color emoji
paint.setTypeface(fTypeface);
canvas->drawText(text, textLen, 670, 100, paint);
« no previous file with comments | « no previous file | src/gpu/effects/GrDistanceFieldTextureEffect.cpp » ('j') | src/gpu/effects/GrDistanceFieldTextureEffect.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698