Don't paint text outside display area
When rendering text, we don't have to render glyphs that fall outside of the display area. This change stops processing glyps when we're outside the display area, and stops processing further style ranges if those are outside the display area. Note that the equivalent functionality is already in place for Windows text rendering. This fixes an issue where text rendering would become very slow when rendering big strings. BUG=413540 Review URL: https://codereview.chromium.org/543073002 Cr-Commit-Position: refs/heads/master@{#295023}
Showing
Please register or sign in to comment