diff options
Diffstat (limited to 'bench')
-rw-r--r-- | bench/GrMemoryPoolBench.cpp | 1 | ||||
-rw-r--r-- | bench/RefCntBench.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bench/GrMemoryPoolBench.cpp b/bench/GrMemoryPoolBench.cpp index b4b05ccd2f..a71de9767c 100644 --- a/bench/GrMemoryPoolBench.cpp +++ b/bench/GrMemoryPoolBench.cpp @@ -12,6 +12,7 @@ #include "SkRandom.h" #include "SkTDArray.h" #include "SkTemplates.h" +#include <new> // change this to 0 to compare GrMemoryPool to default new / delete #define OVERRIDE_NEW 1 diff --git a/bench/RefCntBench.cpp b/bench/RefCntBench.cpp index 5e9e3a0960..f6aa3de942 100644 --- a/bench/RefCntBench.cpp +++ b/bench/RefCntBench.cpp @@ -4,11 +4,12 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ -#include <memory> #include "Benchmark.h" #include "SkAtomics.h" #include "SkRefCnt.h" #include "SkWeakRefCnt.h" +#include <memory> +#include <new> enum { M = 2 |