summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorPetar Šegina <psegina@google.com>2017-08-31 18:09:16 +0100
committerPetar Šegina <psegina@google.com>2017-09-11 15:41:12 +0100
commitba1b8566e4b621f0acee3eeca3c0053647bdf5ab (patch)
tree04ce06f27c631c3f36011a0579219f03595045ef /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent0a22778237dd0c05c588b06af6440869083b56fa (diff)
Filter out empty and unnecessary rectangles
Layout::getSelection will sometimes give us rectangles which are redundant - specifically, those with dimension zero and those that may already be contained in some other rectangles. In order to keep the smart select animation simple and in line with what the user would visually expect, we remove these rectangles. Test: manual - verify smart select animation over multiple lines Test: bit FrameworksCoreTests:android.widget.SelectionActionModeHelperTest Change-Id: Ia4406d9505366245609b44e3ec3743f84820ba0a
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions