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

Unified Diff: bench/SkBenchmark.h

Issue 24440002: Bench baseline for mostly 0 image. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Respond to comments and prevent crash. Created 7 years, 3 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 | « no previous file | bench/SkBenchmark.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/SkBenchmark.h
diff --git a/bench/SkBenchmark.h b/bench/SkBenchmark.h
index 811a1db2c8366316dcf8f4872fbb6922faa72303..ec40077527b777285d6085949194a459fd844f00 100644
--- a/bench/SkBenchmark.h
+++ b/bench/SkBenchmark.h
@@ -10,6 +10,7 @@
#include "SkRefCnt.h"
#include "SkPoint.h"
+#include "SkString.h"
#include "SkTRegistry.h"
#define DEF_BENCH(code) \
@@ -106,6 +107,10 @@ public:
// for (int i = 0; i < this->getLoops(); i++) { <work here> }
int getLoops() const { return fLoops; }
+ static void SetResourcePath(const char* resPath) { gResourcePath.set(resPath); }
+
+ static SkString& GetResourcePath() { return gResourcePath; }
+
protected:
virtual void setupPaint(SkPaint* paint);
@@ -125,6 +130,7 @@ private:
SkTriState::State fDither;
uint32_t fOrMask, fClearMask;
int fLoops;
+ static SkString gResourcePath;
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « no previous file | bench/SkBenchmark.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698