Fix issue where SkAutoSTMalloc doesn't default initialize std::unique_ptr.

TBR=jvanverth@google.com

Change-Id: Ifd29f55956f640dfc972490244d5d356bac89759
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/225418
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Salomon 2019-07-03 07:52:41 -04:00 committed by Skia Commit-Bot
parent 93eeff578b
commit c9d81f768f

View File

@ -58,7 +58,7 @@ sk_sp<GrTexture> GrResourceProvider::createTexture(const GrSurfaceDesc& desc, Sk
}
SkAutoSTMalloc<14, GrMipLevel> tmpTexels;
SkAutoSTMalloc<14, std::unique_ptr<char[]>> tmpDatas;
SkAutoSTArray<14, std::unique_ptr<char[]>> tmpDatas;
if (mipLevelCount > 0 && texels) {
tmpTexels.reset(mipLevelCount);
tmpDatas.reset(mipLevelCount);