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

Unified Diff: bench/GMBench.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/GMBench.h ('k') | bench/GameBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/GMBench.cpp
diff --git a/bench/SkGMBench.cpp b/bench/GMBench.cpp
similarity index 80%
rename from bench/SkGMBench.cpp
rename to bench/GMBench.cpp
index 77d29a70a912088532acf6d946f1c19caa3454d7..41a8e8c5f4c7b2226fe696602ac97dcf11581889 100644
--- a/bench/SkGMBench.cpp
+++ b/bench/GMBench.cpp
@@ -5,19 +5,19 @@
* found in the LICENSE file.
*/
-#include "SkGMBench.h"
+#include "GMBench.h"
-SkGMBench::SkGMBench(skiagm::GM* gm) : fGM(gm) {
+GMBench::GMBench(skiagm::GM* gm) : fGM(gm) {
fName.printf("GM:%s", gm->getName());
}
-SkGMBench::~SkGMBench() { delete fGM; }
+GMBench::~GMBench() { delete fGM; }
-const char* SkGMBench::onGetName() {
+const char* GMBench::onGetName() {
return fName.c_str();
}
-bool SkGMBench::isSuitableFor(Backend backend) {
+bool GMBench::isSuitableFor(Backend backend) {
uint32_t flags = fGM->getFlags();
switch (backend) {
case kGPU_Backend:
@@ -36,7 +36,7 @@ bool SkGMBench::isSuitableFor(Backend backend) {
}
}
-void SkGMBench::onDraw(const int loops, SkCanvas* canvas) {
+void GMBench::onDraw(const int loops, SkCanvas* canvas) {
// Do we care about timing the draw of the background (once)?
// Does the GM ever rely on drawBackground to lazily compute something?
fGM->drawBackground(canvas);
@@ -45,7 +45,7 @@ void SkGMBench::onDraw(const int loops, SkCanvas* canvas) {
}
}
-SkIPoint SkGMBench::onGetSize() {
+SkIPoint GMBench::onGetSize() {
SkISize size = fGM->getISize();
return SkIPoint::Make(size.fWidth, size.fHeight);
}
« no previous file with comments | « bench/GMBench.h ('k') | bench/GameBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698