am 55371beb: am 754bf6ab: am c8868db2: am 737d3e5d: am 6b96ecca: am 32753f4f: am 31912122: am 6eb28103: am 183f97b7: am 1c12f9e7: malloc some advances

* commit '55371beb024ae402831898f8788e4293f52dd832':
  malloc some advances
This commit is contained in:
Victoria Lease
2014-03-19 15:21:09 -07:00
committed by Android Git Automerger

View File

@@ -558,7 +558,7 @@ public:
return 0;
}
}
jfloat advancesArray[count];
jfloat* advancesArray = new jfloat[count];
jfloat totalAdvance = 0;
TextLayout::getTextRunAdvances(paint, text, start, count, contextCount, flags,
@@ -567,6 +567,7 @@ public:
if (advances != NULL) {
env->SetFloatArrayRegion(advances, advancesIndex, count, advancesArray);
}
delete [] advancesArray;
return totalAdvance;
}