Fix silly mistake in allocating geoms in TextBatch

TBR=joshualitt@google.com

Review URL: https://codereview.chromium.org/1259103004
This commit is contained in:
bsalomon 2015-07-29 06:54:33 -07:00 committed by Commit bot
parent e0effd6080
commit 16ed6adb65

View File

@ -1930,7 +1930,7 @@ private:
int newAllocSize = GrNextPow2(newGeoCount);
int currAllocSize = SkTMax<int>(kMinGeometryAllocated, GrNextPow2(fGeoCount));
if (newAllocSize > currAllocSize) {
if (newGeoCount > currAllocSize) {
fGeoData.realloc(newAllocSize);
}