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:
parent
ccfdaa5f2a
commit
24716be1d1
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user