diff options
author | yujieqin <yujieqin@google.com> | 2016-01-27 07:59:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-27 07:59:00 -0800 |
commit | 24716be1d1e6d7fba6ee8604823ce326fd69be1e (patch) | |
tree | 2c09d1d0c49610efb6e99fe3ac6fbabc3d28cabb /src/codec | |
parent | ccfdaa5f2aee5da5cb49e0b5828bead73273a15e (diff) |
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
Diffstat (limited to 'src/codec')
-rw-r--r-- | src/codec/SkRawCodec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codec/SkRawCodec.cpp b/src/codec/SkRawCodec.cpp index 05f18ac635..79590d1832 100644 --- a/src/codec/SkRawCodec.cpp +++ b/src/codec/SkRawCodec.cpp @@ -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]; |