summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorAndrei Stingaceanu <stg@google.com>2017-10-13 12:53:23 +0100
committerAndrei Stingaceanu <stg@google.com>2017-10-17 12:33:34 +0100
commit15af561efd47a2948a65894d6a916d9656b13f7b (patch)
tree786df3f2db0be5cb46cb8073f984e8eaa1c5d62b /tools/aapt2/java/JavaClassGenerator.cpp
parentaab5a8a087f41373682dfb1d0a37f3d24435c15b (diff)
[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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions