Commits

Raph Levien authored e174ae210e4
Fix for testPaintFlagsDrawFilter CTS test This fixes bug 6948776 android.graphics.cts.PaintFlagsDrawFilterTest#testPaintFlagsDrawFilter failures on JO When we moved the drawing of text decorations (underline, strikethrough) from Skia to our own drawing (so we could take into account the metrics computed by TextLayoutEngine), we just used the raw flags from the paint, which ignored the overrides that a DrawFilter can effect. The patch simply checks for the existence of a DrawFilter in the canvas, and applies it to a copy of the paint where present. This will be one extra paint copy where the filter exists, but that's expected to be rare (other than running this CTS test, of course). Change-Id: I664c478b73a3a1cc43599ee11bbc02c69b7a96c2