Fix for VALGRIND DrawAtlas test issue.

Don't pre-alloc color array.

Review URL: https://codereview.chromium.org/1289003002
This commit is contained in:
jvanverth 2015-08-13 11:53:39 -07:00 committed by Commit bot
parent e5aaa07c35
commit 1acf250f92

View File

@ -236,7 +236,7 @@ BATCH_TEST_DEFINE(GrDrawAtlasBatch) {
SkTArray<SkRSXform> xforms(spriteCount);
SkTArray<SkRect> texRects(spriteCount);
SkTArray<GrColor> colors(spriteCount);
SkTArray<GrColor> colors;
bool hasColors = random->nextBool();