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

Unified Diff: bench/GameBench.cpp

Issue 23478013: Major bench refactoring. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: epoger 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
Index: bench/GameBench.cpp
diff --git a/bench/GameBench.cpp b/bench/GameBench.cpp
index 70514947dfe32a59f62c40a791bfae414832cd85..34ac026932123054c953213018122e1d41340442 100644
--- a/bench/GameBench.cpp
+++ b/bench/GameBench.cpp
@@ -144,8 +144,7 @@ protected:
SkShader::kClamp_TileMode,
SkShader::kClamp_TileMode))->unref();
- for (int i = 0; i < kNumRects; ++i, ++fNumSaved) {
-
+ for (int i = 0; i < this->getLoops(); ++i, ++fNumSaved) {
if (0 == i % kNumBeforeClear) {
if (kPartial_Clear == fClear) {
for (int j = 0; j < fNumSaved; ++j) {
@@ -229,15 +228,7 @@ private:
(kNumAtlasedX+1) * kAtlasSpacer;
static const int kTotAtlasHeight = kNumAtlasedY * kAtlasCellHeight +
(kNumAtlasedY+1) * kAtlasSpacer;
-
-#ifdef SK_DEBUG
- static const int kNumRects = 100;
- static const int kNumBeforeClear = 10;
-#else
- static const int kNumRects = 5000;
- static const int kNumBeforeClear = 300;
-#endif
-
+ static const int kNumBeforeClear = 100;
Type fType;
Clear fClear;
« no previous file with comments | « bench/FontScalerBench.cpp ('k') | bench/GrMemoryPoolBench.cpp » ('j') | bench/MatrixBench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698