From f168b86d7fafc5c20c87bebc6fd393cb17e120ca Mon Sep 17 00:00:00 2001 From: tfarina Date: Thu, 19 Jun 2014 12:32:29 -0700 Subject: Remove Sk prefix from some bench classes. This idea came while commenting on https://codereview.chromium.org/343583005/ Since SkBenchmark, SkBenchLogger and SkGMBench are not part of the Skia library, they should not have the Sk prefix. BUG=None TEST=make all R=mtklein@google.com Author: tfarina@chromium.org Review URL: https://codereview.chromium.org/347823004 --- bench/GrMemoryPoolBench.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bench/GrMemoryPoolBench.cpp') diff --git a/bench/GrMemoryPoolBench.cpp b/bench/GrMemoryPoolBench.cpp index 96526e5fc2..6e6a37e76c 100644 --- a/bench/GrMemoryPoolBench.cpp +++ b/bench/GrMemoryPoolBench.cpp @@ -8,8 +8,8 @@ // This tests a Gr class #if SK_SUPPORT_GPU +#include "Benchmark.h" #include "GrMemoryPool.h" -#include "SkBenchmark.h" #include "SkRandom.h" #include "SkTDArray.h" #include "SkTemplates.h" @@ -30,7 +30,7 @@ GrMemoryPool A::gBenchPool(10 * (1 << 10), 10 * (1 << 10)); /** * This benchmark creates and deletes objects in stack order */ -class GrMemoryPoolBenchStack : public SkBenchmark { +class GrMemoryPoolBenchStack : public Benchmark { public: virtual bool isSuitableFor(Backend backend) SK_OVERRIDE { return backend == kNonRendering_Backend; @@ -76,7 +76,7 @@ protected: } private: - typedef SkBenchmark INHERITED; + typedef Benchmark INHERITED; }; struct B { @@ -92,7 +92,7 @@ GrMemoryPool B::gBenchPool(10 * (1 << 10), 10 * (1 << 10)); /** * This benchmark creates objects and deletes them in random order */ -class GrMemoryPoolBenchRandom : public SkBenchmark { +class GrMemoryPoolBenchRandom : public Benchmark { public: virtual bool isSuitableFor(Backend backend) SK_OVERRIDE { return backend == kNonRendering_Backend; @@ -121,7 +121,7 @@ protected: } private: - typedef SkBenchmark INHERITED; + typedef Benchmark INHERITED; }; struct C { @@ -137,7 +137,7 @@ GrMemoryPool C::gBenchPool(10 * (1 << 10), 10 * (1 << 10)); /** * This benchmark creates objects and deletes them in queue order */ -class GrMemoryPoolBenchQueue : public SkBenchmark { +class GrMemoryPoolBenchQueue : public Benchmark { enum { M = 4 * (1 << 10), }; @@ -166,7 +166,7 @@ protected: } private: - typedef SkBenchmark INHERITED; + typedef Benchmark INHERITED; }; /////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3