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:
parent
93eeff578b
commit
c9d81f768f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user