diff options
author | Mihai Popa <popam@google.com> | 2018-01-25 19:26:30 +0000 |
---|---|---|
committer | Mihai Popa <popam@google.com> | 2018-01-29 12:13:21 +0000 |
commit | 3589c2c643b38b87c43b7880cce946fc827e7721 (patch) | |
tree | 6d6df1c0cd1e3bf8d3ff2698cb6d68a445338c1b /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 7d0e1f8065cc618ed8931f070777cda366e65fd0 (diff) |
[Magnifier-16] Clamp to surface against distortion
Previously, we were only making sure that the magnified content belongs
to the view the magnifier is attached to. However, when the view was
laid out partially outside the screen, we would pixel copy from outside
the surface the view is attached to. This would lead to the user seeing
a distorted content in the magnifier, in cases when the magnified view
lies outside the screen. This CL addresses this issue, by clamping the
pixel copy coordinates inside the surface we copy the magnifier content
from.
Bug: 72039853
Bug: 63531115
Test: bit CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Iddab05c98b615259938e0d3a3320b98b3b13b246
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions