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

Unified Diff: bench/TableBench.cpp

Issue 23478013: Major bench refactoring. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: merge with head agani 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 | « bench/StrokeBench.cpp ('k') | bench/TextBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/TableBench.cpp
diff --git a/bench/TableBench.cpp b/bench/TableBench.cpp
index e6efe25c4886a003cc24370e271be5d22ba6b620..8dcefbed5f63b2b98ab86cb2ea0aa1fc5b285a5f 100644
--- a/bench/TableBench.cpp
+++ b/bench/TableBench.cpp
@@ -25,8 +25,6 @@ static const SkScalar kCellHeight = SkIntToScalar(10);
// This trio of drawRects is then repeat for the next cell.
class TableBench : public SkBenchmark {
public:
-
- static const int kNumIterations = SkBENCHLOOP(10);
static const int kNumRows = 48;
static const int kNumCols = 32;
@@ -40,14 +38,13 @@ protected:
}
virtual void onDraw(SkCanvas* canvas) {
-
SkPaint cellPaint;
cellPaint.setColor(0xFFFFFFF);
SkPaint borderPaint;
borderPaint.setColor(0xFFCCCCCC);
- for (int i = 0; i < kNumIterations; ++i) {
+ for (int i = 0; i < this->getLoops(); ++i) {
for (int row = 0; row < kNumRows; ++row) {
for (int col = 0; col < kNumCols; ++col) {
SkRect cell = SkRect::MakeLTRB(col * kCellWidth,
« no previous file with comments | « bench/StrokeBench.cpp ('k') | bench/TextBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698