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

Unified Diff: bench/Benchmark.cpp

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/Benchmark.h ('k') | bench/BicubicBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/Benchmark.cpp
diff --git a/bench/SkBenchmark.cpp b/bench/Benchmark.cpp
similarity index 76%
rename from bench/SkBenchmark.cpp
rename to bench/Benchmark.cpp
index 4c5d077b532ff1076a03eb1473667c9e0144c60b..ae614f04f9c4a3ab1141243f091aa78a1ca253ea 100644
--- a/bench/SkBenchmark.cpp
+++ b/bench/Benchmark.cpp
@@ -5,7 +5,7 @@
* found in the LICENSE file.
*/
-#include "SkBenchmark.h"
+#include "Benchmark.h"
#include "SkPaint.h"
#include "SkParse.h"
@@ -14,7 +14,7 @@ const char* SkTriState::Name[] = { "default", "true", "false" };
template BenchRegistry* BenchRegistry::gHead;
-SkBenchmark::SkBenchmark() {
+Benchmark::Benchmark() {
fForceAlpha = 0xFF;
fForceAA = true;
fForceFilter = false;
@@ -22,23 +22,23 @@ SkBenchmark::SkBenchmark() {
fOrMask = fClearMask = 0;
}
-const char* SkBenchmark::getName() {
+const char* Benchmark::getName() {
return this->onGetName();
}
-SkIPoint SkBenchmark::getSize() {
+SkIPoint Benchmark::getSize() {
return this->onGetSize();
}
-void SkBenchmark::preDraw() {
+void Benchmark::preDraw() {
this->onPreDraw();
}
-void SkBenchmark::draw(const int loops, SkCanvas* canvas) {
+void Benchmark::draw(const int loops, SkCanvas* canvas) {
this->onDraw(loops, canvas);
}
-void SkBenchmark::setupPaint(SkPaint* paint) {
+void Benchmark::setupPaint(SkPaint* paint) {
paint->setAlpha(fForceAlpha);
paint->setAntiAlias(fForceAA);
paint->setFilterLevel(fForceFilter ? SkPaint::kLow_FilterLevel
@@ -51,6 +51,6 @@ void SkBenchmark::setupPaint(SkPaint* paint) {
}
}
-SkIPoint SkBenchmark::onGetSize() {
+SkIPoint Benchmark::onGetSize() {
return SkIPoint::Make(640, 480);
}
« no previous file with comments | « bench/Benchmark.h ('k') | bench/BicubicBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698