OSDN Git Service

DO NOT MERGE Fix extraneous allocation and copying
authorAnish Athalye <aathalye@google.com>
Tue, 8 Jul 2014 20:27:14 +0000 (13:27 -0700)
committerAlan Lau <alanlau@google.com>
Mon, 28 Jul 2014 19:06:10 +0000 (19:06 +0000)
commit1a408a344c7921d7c943826bea3ce0cdd822583d
treef288e8f7fa3f5622983c6b9807182252de92920f
parent97170e0c48bbff21ef6773110d950621131cf9dd
DO NOT MERGE Fix extraneous allocation and copying

With breaks being allocated the way it was, there were 16 ints with
value 0 being stored in the beginning of the vector. Because of the way
the rest of the code is structured, this did not result in incorrect
operation, but it still wasted time and memory.

Change-Id: Ic0df3e5484417da51f2465ec2d72222fefffc18a
(cherry picked from commit 733b3c0f8b77fefcd234c94170faa4e7bd76074c)
core/jni/android_text_StaticLayout.cpp