commit | 2fbdd48682c32407daff4fd6577c3838c7c7a220 | [log] [tgz] |
---|---|---|
author | Phil Weaver <pweaver@google.com> | Mon May 02 09:39:07 2016 -0700 |
committer | Phil Weaver <pweaver@google.com> | Mon May 09 16:21:29 2016 -0700 |
tree | 3e43fc019f49c7a4e533fe4dc905fbb5e063a198 | |
parent | 5ee41098b0d36cce4f6cb690cbaafdffb4177e8f [diff] |
Reduce cost of a11y services with magnification. Services that declare that they can control magnification, but never actually make a change or register a listener waste cycles as we compute magnification data they never use. Avoid registering for magnification callbacks unless magnification gestures are enabled, a service is listening for magnification changes, or a service has changed magnification. Bug: 28425922 Change-Id: I114a833669bd53b2cd757c94ea52b65a2f838a08