diff options
author | 2015-08-13 11:53:39 -0700 | |
---|---|---|
committer | 2015-08-13 11:53:39 -0700 | |
commit | 1acf250f922a547018bab25676d63f3bb090be71 (patch) | |
tree | 162e39d44827b6f10fea241d1e896e7ed2fdd244 | |
parent | e5aaa07c351815f023a0842820eb769c6d4b4ed3 (diff) |
Fix for VALGRIND DrawAtlas test issue.
Don't pre-alloc color array.
Review URL: https://codereview.chromium.org/1289003002
-rw-r--r-- | src/gpu/batches/GrDrawAtlasBatch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<SkRSXform> xforms(spriteCount); SkTArray<SkRect> texRects(spriteCount); - SkTArray<GrColor> colors(spriteCount); + SkTArray<GrColor> colors; bool hasColors = random->nextBool(); |