Fix for VALGRIND DrawAtlas test issue.
Don't pre-alloc color array. Review URL: https://codereview.chromium.org/1289003002
This commit is contained in:
parent
e5aaa07c35
commit
1acf250f92
@ -236,7 +236,7 @@ BATCH_TEST_DEFINE(GrDrawAtlasBatch) {
|
|||||||
|
|
||||||
SkTArray<SkRSXform> xforms(spriteCount);
|
SkTArray<SkRSXform> xforms(spriteCount);
|
||||||
SkTArray<SkRect> texRects(spriteCount);
|
SkTArray<SkRect> texRects(spriteCount);
|
||||||
SkTArray<GrColor> colors(spriteCount);
|
SkTArray<GrColor> colors;
|
||||||
|
|
||||||
bool hasColors = random->nextBool();
|
bool hasColors = random->nextBool();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user