Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(972)

Unified Diff: bench/Benchmark.h

Issue 347823004: Remove Sk prefix from some bench classes. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: SkGMBench -> GMBench Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/BenchTool/BenchTool.xcodeproj/project.pbxproj ('k') | bench/Benchmark.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/Benchmark.h
diff --git a/bench/SkBenchmark.h b/bench/Benchmark.h
similarity index 90%
rename from bench/SkBenchmark.h
rename to bench/Benchmark.h
index 012d0fd0b0f6ca1164e73e3a61ad83f57dad9b53..db70bbe49cafa88ea1672cb75cfe1e85537b59e5 100644
--- a/bench/SkBenchmark.h
+++ b/bench/Benchmark.h
@@ -1,21 +1,21 @@
-
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#ifndef SkBenchmark_DEFINED
-#define SkBenchmark_DEFINED
-#include "SkRefCnt.h"
+#ifndef Benchmark_DEFINED
+#define Benchmark_DEFINED
+
#include "SkPoint.h"
+#include "SkRefCnt.h"
#include "SkString.h"
#include "SkTRegistry.h"
#define DEF_BENCH(code) \
namespace { \
-static SkBenchmark* SK_MACRO_APPEND_LINE(factory)(void*) { code; } \
+static Benchmark* SK_MACRO_APPEND_LINE(factory)(void*) { code; } \
BenchRegistry SK_MACRO_APPEND_LINE(g_R_)(SK_MACRO_APPEND_LINE(factory)); \
}
@@ -42,11 +42,11 @@ public:
static const char* Name[];
};
-class SkBenchmark : public SkRefCnt {
+class Benchmark : public SkRefCnt {
public:
- SK_DECLARE_INST_COUNT(SkBenchmark)
+ SK_DECLARE_INST_COUNT(Benchmark)
- SkBenchmark();
+ Benchmark();
const char* getName();
SkIPoint getSize();
@@ -123,6 +123,6 @@ private:
typedef SkRefCnt INHERITED;
};
-typedef SkTRegistry<SkBenchmark*(*)(void*)> BenchRegistry;
+typedef SkTRegistry<Benchmark*(*)(void*)> BenchRegistry;
#endif
« no previous file with comments | « bench/BenchTool/BenchTool.xcodeproj/project.pbxproj ('k') | bench/Benchmark.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698