summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2016-06-01 16:49:27 -0700
committerRoozbeh Pournader <roozbeh@google.com>2016-06-01 17:29:23 -0700
commit5536c4fdee8684ebbb2d17af72ce94757a5e1a80 (patch)
treede79ad44d7b7fc125fbec59b1529cca8a264be14 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent185037ecfaaa7539242a886fb3bd843637933b70 (diff)
Use bidi heuristics correctly in BoringLayout#isBoring()
in order to determine if the text is RTL, the previous code ran chunks of the text (in code units) through the TextDirectionHeuristic instead of the whole text, which could result in misdetection as RTL in various cases, or missing some cases due to RTL characters getting split across chunks. Now we look at the whole text instead. This also refactors the code to make it clearer to understand and removes an unused signature for isBoring. Bug: 27702584 Change-Id: I8d98614a0af28c0d4e61af5ab4a27a8a3ab8c9dc
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions