From 9d1cff124c14e550889a5755ffa5e6537af7c8c8 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Thu, 18 Apr 2013 18:43:26 +0000 Subject: use SkAutoTDelete instead of SkTScopedPtr Review URL: https://codereview.chromium.org/13831011 git-svn-id: http://skia.googlecode.com/svn/trunk@8749 2bbb7eff-a529-9590-31e7-b0007b416f81 --- bench/GrMemoryPoolBench.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bench/GrMemoryPoolBench.cpp') diff --git a/bench/GrMemoryPoolBench.cpp b/bench/GrMemoryPoolBench.cpp index 29c0893f92..dccf8278f5 100644 --- a/bench/GrMemoryPoolBench.cpp +++ b/bench/GrMemoryPoolBench.cpp @@ -11,8 +11,8 @@ #include "GrMemoryPool.h" #include "SkBenchmark.h" #include "SkRandom.h" -#include "SkTScopedPtr.h" #include "SkTDArray.h" +#include "SkTemplates.h" // change this to 0 to compare GrMemoryPool to default new / delete #define OVERRIDE_NEW 1 @@ -107,14 +107,14 @@ protected: enum { kMaxObjects = 4 * (1 << 10), }; - SkTScopedPtr objects[kMaxObjects]; + SkAutoTDelete objects[kMaxObjects]; for (int i = 0; i < N; i++) { uint32_t idx = r.nextRangeU(0, kMaxObjects-1); if (NULL == objects[idx].get()) { objects[idx].reset(new A); } else { - objects[idx].reset(NULL); + objects[idx].free(); } } } -- cgit v1.2.3