Raph Levien
e174ae210e
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
2012-10-03 15:26:47 -07:00
..
2012-10-03 15:26:47 -07:00
2012-02-17 19:01:26 -08:00
2012-08-27 14:34:54 -07:00
2012-02-17 19:01:26 -08:00
2012-02-17 19:01:26 -08:00
2012-01-19 14:44:59 -08:00
2012-02-17 19:01:26 -08:00
2012-02-17 19:01:26 -08:00
2012-03-08 16:06:30 -08:00
2012-06-12 15:39:09 -07:00
2012-06-05 14:44:48 -07:00
2012-01-19 18:13:18 -08:00
2012-03-05 10:30:06 -08:00
2012-01-19 14:44:50 -08:00
2012-01-19 14:45:03 -08:00
2012-01-19 14:45:03 -08:00
2012-09-19 14:31:26 -07:00
2012-05-07 18:27:06 -07:00
2012-02-10 10:51:23 -08:00
2012-01-19 14:45:03 -08:00
2012-08-09 15:28:10 -07:00
2012-07-03 08:40:46 -07:00
2012-09-25 17:01:40 -07:00
2012-04-20 16:26:07 -07:00
2012-03-14 13:54:21 -07:00
2012-09-07 13:26:31 -07:00
2012-03-29 19:48:40 -07:00
2012-01-19 14:45:03 -08:00
2012-04-18 21:55:14 -07:00
2012-04-12 14:53:32 -07:00
2012-04-12 17:50:29 -07:00
2012-01-18 11:08:20 +00:00
2012-08-27 14:34:54 -07:00
2012-07-23 17:09:36 -07:00
2012-07-12 13:55:55 -07:00
2012-07-23 17:09:36 -07:00
2012-07-12 13:55:55 -07:00
2012-07-23 17:09:36 -07:00
2012-06-08 18:36:48 -07:00
2012-08-20 12:24:05 -07:00
2012-04-06 18:25:09 -07:00
2012-04-06 18:25:09 -07:00
2012-05-09 20:14:09 +09:00
2012-05-09 20:14:09 +09:00
2012-07-25 11:07:39 -04:00
2012-09-26 18:46:08 -07:00
2012-05-09 14:53:20 -07:00
2012-03-09 15:43:50 -08:00
2012-01-19 14:45:03 -08:00
2012-01-19 14:45:03 -08:00
2012-01-19 14:45:03 -08:00
2012-06-18 16:17:30 -07:00
2012-09-14 20:22:17 -07:00
2012-05-18 15:51:27 -07:00
2012-08-31 15:11:13 -07:00
2012-03-08 16:06:30 -08:00
2012-01-19 14:45:03 -08:00
2012-01-19 14:45:03 -08:00
2012-08-21 22:27:41 -07:00
2012-04-02 10:53:17 -07:00
2012-01-20 13:08:03 -08:00
2012-06-08 18:36:48 -07:00
2012-02-17 19:01:26 -08:00
2012-02-17 19:01:26 -08:00
2012-09-21 15:34:32 -07:00
2012-09-25 12:22:21 -07:00
2012-09-30 15:35:08 -07:00
2012-04-02 10:52:52 -07:00
2012-03-08 16:06:30 -08:00
2012-02-17 15:36:10 -08:00
2012-05-01 16:34:20 -07:00
2012-04-10 18:23:58 -07:00
2012-05-31 16:23:11 -07:00
2012-04-10 18:23:58 -07:00
2012-04-10 18:23:58 -07:00
2012-02-17 15:36:10 -08:00
2012-03-08 16:06:30 -08:00
2012-01-19 14:44:59 -08:00
2012-09-17 18:32:40 -07:00
2012-08-27 14:34:54 -07:00
2012-06-03 19:21:49 -07:00
2012-09-20 10:47:06 -07:00
2012-10-01 14:59:39 -07:00
2012-03-22 18:43:07 -07:00
2012-08-27 14:34:54 -07:00
2012-07-23 17:09:36 -07:00