diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-18 18:43:26 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-18 18:43:26 +0000 |
commit | 9d1cff124c14e550889a5755ffa5e6537af7c8c8 (patch) | |
tree | 6dacc454a758e8b9c4e8b2b3f5b8062062ebae06 /bench/GrMemoryPoolBench.cpp | |
parent | 9584b9ebd84993afc89b503217cc1012c70ed559 (diff) |
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
Diffstat (limited to 'bench/GrMemoryPoolBench.cpp')
-rw-r--r-- | bench/GrMemoryPoolBench.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<A> objects[kMaxObjects]; + SkAutoTDelete<A> 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(); } } } |