DescriptionExtract "text align proc" functions as reusable classes
Extract "text align proc" as reusable classes. These classes need to be used
when writing GrTextContext subclasses.
Moves "text align proc" code that is duplicated in SkDraw and
SkBitmapTextContext to SkDrawProcs.h and SkTextMapState.h. This functionality is
also used in the new GrStencilAndCoverTextContext.
Creates new functor classes SkTextAlignProc and SkTextAlignProcScalar which
represent the previous "text align procs".
Moves TextMapState from SkDraw to SkTextMapStateProc and make it similar functor.
The transform should be comparable in speed, as the compiler can and does avoid
the call and eliminate some of the branches.
Committed: https://skia.googlesource.com/skia/+/cb9a2c8934f009b6ee1ca73d662ac18b285085d9
Patch Set 1 #
Total comments: 1
Patch Set 2 : address review comments #
Messages
Total messages: 7 (0 generated)
|