Index: gm/lcdtext.cpp |
diff --git a/gm/lcdtext.cpp b/gm/lcdtext.cpp |
index e40fb0df18234d06baf2f63731b197bdb6e0f436..a2bfa01d3827ccac3f66a267042c523a1984de45 100644 |
--- a/gm/lcdtext.cpp |
+++ b/gm/lcdtext.cpp |
@@ -145,7 +145,13 @@ DEF_SIMPLE_GM(savelayer_lcdtext, canvas, 620, 260) { |
for (auto preserve : gPreserveLCDText) { |
preserve ? canvas->saveLayerPreserveLCDTextRequests(nullptr, nullptr) |
: canvas->saveLayer(nullptr, nullptr); |
- canvas->drawText("Hamburgefons", 12, 30, 60, paint); |
+ if (preserve) { |
+ SkPaint noLCD = paint; |
+ noLCD.setLCDRenderText(false); |
+ canvas->drawText("LCD not supported", 17, 30, 60, noLCD); |
+ } else { |
+ canvas->drawText("Hamburgefons", 12, 30, 60, paint); |
+ } |
SkPaint p; |
p.setColor(0xFFCCCCCC); |