more direct glyph drawing
Allow direct glyph drawing to handle more cases. Instead of using the approximate glyphs size to control using direct drawing, directly measure each glyph. This will be useful in latter CL to better scale *very* big emoji. This is its own CL to check pixel problem in chrome layout and google3. It's a simple revert. Bug: chromium:1280180 Change-Id: Ic2e4aed7d401b99909ba2aceaf0f2f849070a80c Reviewed-on: https://skia-review.googlesource.com/c/skia/+/492402 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
parent
3e35c8a584
commit
93e0041c6c
@ -287,8 +287,7 @@ void SkGlyphRunListPainter::processGlyphRun(const SkGlyphRun& glyphRun,
|
||||
}
|
||||
}
|
||||
|
||||
if (!fRejects.source().empty() &&
|
||||
approximateDeviceTextSize <= SkStrikeCommon::kSkSideTooBigForAtlas) {
|
||||
if (!fRejects.source().empty()) {
|
||||
// Process masks including ARGB - this should be the 99.99% case.
|
||||
// This will handle medium size emoji that are sharing the run with SDFT drawn text.
|
||||
// If things are too big they will be passed along to the drawing of last resort below.
|
||||
|
Loading…
Reference in New Issue
Block a user