DescriptionMake GrTextContext be owned by the GrDrawContext
This CL makes the GrTextContext be owned (and hidden) by the GrDrawContext. This funnels all the drawText* calls through the GrDrawContext and hides the (dispreferred) GrPipelineBuilder drawText variant.
Some consequences of this are:
GrDrawContext now has to get the text drawing settings (i.e., SkDeviceProperties & useDFT). This means that we need a separate GrDrawContext for each combination of pixel geometry and DFT-use.
All the GrTextContext-derived classes now get a back pointer to the originating GrDrawContext so their method calls no longer take one.
Committed: https://skia.googlesource.com/skia/+/5b16e740fe6ab6d679083d06f07651602265081b
Committed: https://skia.googlesource.com/skia/+/2334fb655f8d4ef5915770d32bf845c88d3627f4
Patch Set 1 #
Total comments: 2
Patch Set 2 : Add kNumDFTOptions #
Total comments: 2
Patch Set 3 : Add some dox #Patch Set 4 : update to ToT #
Total comments: 2
Patch Set 5 : Added more dox #
Total comments: 7
Patch Set 6 : update to ToT #Patch Set 7 : Address code review comments #Patch Set 8 : Fix nvpr config #
Messages
Total messages: 42 (16 generated)
|