diff options
author | bungeman <bungeman@google.com> | 2017-05-10 13:50:12 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-10 18:20:25 +0000 |
commit | 6f9f2591c1a6a01f0c0fb06fcd77d1429e3ce260 (patch) | |
tree | 181f7c915d2f4c1066bb707a25589c994c896e48 /gm/lcdtext.cpp | |
parent | efa48d599de15d960d7335a4a93a6bbeb97d3c41 (diff) |
Fix alpha coverage for lerp_565 stage.
Like three gray with alpha blends and taking the max alpha.
Change-Id: I104c84f784979030744127f8f66905ad9d1bdf0e
Reviewed-on: https://skia-review.googlesource.com/15898
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'gm/lcdtext.cpp')
-rw-r--r-- | gm/lcdtext.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gm/lcdtext.cpp b/gm/lcdtext.cpp index 41e83d68fd..a48856f603 100644 --- a/gm/lcdtext.cpp +++ b/gm/lcdtext.cpp @@ -146,13 +146,8 @@ DEF_SIMPLE_GM(savelayer_lcdtext, canvas, 620, 260) { for (auto preserve : gPreserveLCDText) { preserve ? canvas->saveLayerPreserveLCDTextRequests(nullptr, nullptr) : canvas->saveLayer(nullptr, nullptr); - if (preserve) { - SkPaint noLCD = paint; - noLCD.setLCDRenderText(false); - canvas->drawString("LCD not supported", 30, 60, noLCD); - } else { - canvas->drawString("Hamburgefons", 30, 60, paint); - } + + canvas->drawString("Hamburgefons", 30, 60, paint); SkPaint p; p.setColor(0xFFCCCCCC); |