Fix complier issue [-Werror, -Wvla]

BUG=skia:4861
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1638323002

Review URL: https://codereview.chromium.org/1638323002
This commit is contained in:
yujieqin 2016-01-27 07:59:00 -08:00 committed by Commit bot
parent ccfdaa5f2a
commit 24716be1d1

View File

@ -405,7 +405,7 @@ SkCodec::Result SkRawCodec::onGetPixels(const SkImageInfo& requestedInfo, void*
}
void* dstRow = dst;
uint8_t srcRow[width * 3];
SkAutoTMalloc<uint8_t> srcRow(width * 3);
dng_pixel_buffer buffer;
buffer.fData = &srcRow[0];