diff options
author | 2016-11-02 17:07:33 -0400 | |
---|---|---|
committer | 2016-11-02 21:30:38 +0000 | |
commit | 7ecc59610de72043e9b7ebaf1ef45c43425e54fc (patch) | |
tree | 25bdd613cc4096d02218308b6648e458737292a9 /tests/ImageTest.cpp | |
parent | d5def99232f0c66de8da213fff09fa4bcaa9df4d (diff) |
Remove SkAutoTDeleteArray
This class is already just an alias for std::unique_ptr<T[]>, so replace
all uses with that and delete the class.
CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Debug-ASAN-Trybot,Test-Ubuntu-Clang-Golo-GPU-GT610-x86_64-Debug-ASAN-Trybot
Change-Id: I40668d398356a22da071ee791666c7f728b59266
Reviewed-on: https://skia-review.googlesource.com/4362
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tests/ImageTest.cpp')
-rw-r--r-- | tests/ImageTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp index a0ce16fcab..58576251fe 100644 --- a/tests/ImageTest.cpp +++ b/tests/ImageTest.cpp @@ -799,7 +799,7 @@ struct TextureReleaseChecker { DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(SkImage_NewFromTextureRelease, reporter, ctxInfo) { const int kWidth = 10; const int kHeight = 10; - SkAutoTDeleteArray<uint32_t> pixels(new uint32_t[kWidth * kHeight]); + std::unique_ptr<uint32_t[]> pixels(new uint32_t[kWidth * kHeight]); GrBackendTextureDesc backendDesc; backendDesc.fConfig = kRGBA_8888_GrPixelConfig; backendDesc.fFlags = kRenderTarget_GrBackendTextureFlag; |