From 1acf250f922a547018bab25676d63f3bb090be71 Mon Sep 17 00:00:00 2001 From: jvanverth Date: Thu, 13 Aug 2015 11:53:39 -0700 Subject: Fix for VALGRIND DrawAtlas test issue. Don't pre-alloc color array. Review URL: https://codereview.chromium.org/1289003002 --- src/gpu/batches/GrDrawAtlasBatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/batches/GrDrawAtlasBatch.cpp b/src/gpu/batches/GrDrawAtlasBatch.cpp index ba3551d459..f79412be54 100644 --- a/src/gpu/batches/GrDrawAtlasBatch.cpp +++ b/src/gpu/batches/GrDrawAtlasBatch.cpp @@ -236,7 +236,7 @@ BATCH_TEST_DEFINE(GrDrawAtlasBatch) { SkTArray xforms(spriteCount); SkTArray texRects(spriteCount); - SkTArray colors(spriteCount); + SkTArray colors; bool hasColors = random->nextBool(); -- cgit v1.2.3