DescriptionImplement text rendering with NVPR
Use path rendering to render the text from outlines if supported by the
GPU. Implement this in GrStencilAndCoverTextContext by copying chunks of code
from GrBitmapTextContext.
The drawing is implemented with "instanced" path drawing functions.
Moves the creation of the "main" text context from SkGpuDevice to the
GrContext::createTextContext. This is done because the decision of which text
renderer is optimal can be made only with the internal implementation-specific
information of the context.
Remove a windows assertion from SkScalerContext_GDI::getGDIGlyphPath. The
GetGlyphOutlineW fails in fontmgr_match for the initial space char in the string
" [700] ...". According to MSDN, this is a known problem. Just return that the
glyph has no path data in these cases.
Committed: https://skia.googlesource.com/skia/+/c6cb56f36c4aad8ed45486a3bb4de614bb822f1b
Patch Set 1 #Patch Set 2 : use instanced #Patch Set 3 : rebase #Patch Set 4 : cleanup #Patch Set 5 : #Patch Set 6 : remove path drawing from the patch #
Total comments: 6
Patch Set 7 : address review comments + one changed hunk #
Total comments: 1
Patch Set 8 : rebase #Patch Set 9 : remove unused member variable causing mac build failure. #Patch Set 10 : fix a windows assertion #Patch Set 11 : #Patch Set 12 : try to align the glyphs similarly to the bitmap text context #Patch Set 13 : rebase #Patch Set 14 : rebase and fix postext #
Total comments: 12
Patch Set 15 : review comments #Patch Set 16 : parts of code moved to other patches #Patch Set 17 : working version #Patch Set 18 : oopses #Patch Set 19 : rebase #Patch Set 20 : fix VS "performance warning" converting int to bool #
Messages
Total messages: 52 (0 generated)
|