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

Unified Diff: gm/mixedtextblobs.cpp

Issue 1261483002: mixed text blobs really draws LCD (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | src/core/SkPaint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/mixedtextblobs.cpp
diff --git a/gm/mixedtextblobs.cpp b/gm/mixedtextblobs.cpp
index 681b0b7cb1d0714425602825ffead09917ea8de1..af39abd0f4f749b052654c03e374790449762150 100644
--- a/gm/mixedtextblobs.cpp
+++ b/gm/mixedtextblobs.cpp
@@ -69,6 +69,7 @@ protected:
// LCD
paint.setTextSize(32);
text = "LCD!!!!!";
+ paint.setAntiAlias(true);
paint.setSubpixelText(true);
paint.setLCDRenderText(true);
paint.measureText(text, strlen(text), &bounds);
@@ -78,6 +79,7 @@ protected:
// color emoji
if (fEmojiTypeface) {
+ paint.setAntiAlias(false);
paint.setSubpixelText(false);
paint.setLCDRenderText(false);
paint.setTypeface(fEmojiTypeface);
« no previous file with comments | « no previous file | src/core/SkPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698