From 7ecc59610de72043e9b7ebaf1ef45c43425e54fc Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Wed, 2 Nov 2016 17:07:33 -0400 Subject: Remove SkAutoTDeleteArray This class is already just an alias for std::unique_ptr, 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 Reviewed-by: Mike Klein --- tests/ClearTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/ClearTest.cpp') diff --git a/tests/ClearTest.cpp b/tests/ClearTest.cpp index 4a6e26c86a..d83fb92b53 100644 --- a/tests/ClearTest.cpp +++ b/tests/ClearTest.cpp @@ -20,7 +20,7 @@ static bool check_rect(GrRenderTargetContext* rtc, const SkIRect& rect, uint32_t GrRenderTarget* rt = rtc->accessRenderTarget(); int w = rect.width(); int h = rect.height(); - SkAutoTDeleteArray pixels(new uint32_t[w * h]); + std::unique_ptr pixels(new uint32_t[w * h]); memset(pixels.get(), ~expectedValue, sizeof(uint32_t) * w * h); rt->readPixels(rect.fLeft, rect.fTop, w, h, kRGBA_8888_GrPixelConfig, pixels.get()); for (int y = 0; y < h; ++y) { -- cgit v1.2.3