Andrei Stingaceanu
15af561efd
[Magnifier - 3] Reduce number of calls to PixelCopy
...
* Magnifier#show() takes snapshots of the content and displays
them in the Magnifier bitmap
* calling show(...) consecutive times with the same arguments is
a no-op if already showing (to cater with the miriad of motion
events produced by touch which end up calling show(...))
* introduced Magnifier#invalidate(...) which, if currently
showing, forces updating the content using the last configuration
* clamped the start horizontal value of the Rect which delimits the
content to show in order to avoid distorting the rendering of the
magnifier content
* fixed invalidating the magnifier (invalidate() does not
automatically call invalidate(RectF) !)
Bug: 63531115
Bug: 67296158
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: manual test that shows the magnifier working
Change-Id: I8e53dfb6582d541922fe05b60311658fb07ca880
2017-10-17 12:33:34 +01:00
..
2017-08-16 23:33:09 +00:00
2017-03-20 09:07:17 -07:00
2017-04-24 16:01:12 -07:00
2016-10-11 17:00:17 -07:00
2016-10-11 17:00:17 -07:00
2017-05-25 15:49:40 -07:00
2017-04-18 15:36:04 -07:00
2017-04-18 15:36:04 -07:00
2016-09-29 16:59:02 -07:00
2016-10-11 17:00:17 -07:00
2017-04-14 11:15:50 -04:00
2017-08-09 20:03:56 +00:00
2016-10-11 17:00:17 -07:00
2017-06-21 13:36:56 -06:00
2017-08-06 07:37:08 -06:00
2016-10-11 17:00:17 -07:00
2017-02-27 11:06:20 -05:00
2016-10-11 17:00:17 -07:00
2016-10-11 17:00:17 -07:00
2017-04-17 09:27:09 -07:00
2017-04-24 16:01:12 -07:00
2017-08-15 10:42:58 -07:00
2017-08-18 16:56:33 +00:00
2017-08-15 10:42:58 -07:00
2017-01-13 13:43:22 -05:00
2017-02-27 11:06:20 -05:00
2017-06-13 18:23:22 +01:00
2017-02-27 11:06:20 -05:00
2016-10-11 17:00:17 -07:00
2016-10-11 17:00:17 -07:00
2016-10-11 17:00:17 -07:00
2017-07-27 23:29:34 +00:00
2017-10-17 12:33:34 +01:00
2017-04-25 22:06:48 -07:00
2016-10-11 17:00:17 -07:00
2017-02-16 09:37:56 -08:00
2016-08-22 10:16:21 +00:00
2016-10-11 17:00:17 -07:00
2017-07-25 10:00:21 +00:00
2017-05-15 15:58:45 -07:00
2017-04-04 22:44:41 +00:00
2016-09-23 10:16:16 -07:00
2016-08-25 12:38:46 -07:00
2017-05-26 14:31:29 -07:00
2017-08-06 07:37:08 -06:00
2017-06-22 11:54:45 -07:00
2017-08-28 13:26:38 +09:00
2017-02-27 11:06:20 -05:00
2016-10-11 17:00:17 -07:00
2017-04-14 11:15:50 -04:00
2017-06-06 10:48:47 -07:00
2016-09-07 08:40:54 -07:00
2017-01-20 08:29:17 -08:00
2017-09-23 10:13:06 -07:00
2017-04-25 23:14:09 -07:00
2016-10-11 17:00:17 -07:00
2016-10-11 17:00:17 -07:00
2017-04-24 16:01:12 -07:00
2017-01-19 15:39:05 -08:00
2017-07-13 19:11:05 -07:00
2017-10-12 12:36:19 -07:00
2017-04-20 15:27:08 -07:00
2016-10-11 17:00:17 -07:00
2016-10-11 17:00:17 -07:00
2016-10-11 17:00:17 -07:00
2016-10-11 17:00:17 -07:00
2017-04-26 00:23:49 -07:00
2017-03-07 00:52:09 -08:00
2016-10-04 12:56:47 -07:00
2017-10-12 23:50:53 +01:00
2017-04-24 16:01:12 -07:00
2016-10-11 17:00:17 -07:00
2017-08-04 10:17:36 -07:00
2016-06-27 12:10:31 -04:00
2017-10-06 17:31:16 +01:00
2016-12-19 11:31:07 -08:00
2017-03-09 08:14:49 -08:00
2016-11-07 18:27:41 +00:00
2017-02-27 11:06:20 -05:00
2017-09-21 12:54:55 -07:00
2017-07-31 11:03:02 -07:00
2016-10-11 17:00:17 -07:00
2017-09-15 16:59:15 -04:00
2017-04-18 15:33:38 -07:00
2017-07-13 15:25:24 -07:00
2017-10-17 12:33:34 +01:00
2017-04-19 22:10:51 +01:00
2017-08-15 10:42:58 -07:00
2017-08-15 10:42:58 -07:00
2017-08-15 10:42:58 -07:00
2017-05-16 14:16:01 +00:00
2017-03-29 22:18:56 +00:00
2017-04-14 11:15:50 -04:00
2017-05-02 09:39:06 -07:00
2016-10-11 17:00:17 -07:00
2016-10-11 17:00:17 -07:00
2016-08-25 12:38:46 -07:00
2017-02-27 11:06:20 -05:00