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

Unified Diff: bench/VertBench.cpp

Issue 99893003: Simplify benchmark internal API. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 7 years 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/TileBench.cpp ('k') | bench/WritePixelsBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/VertBench.cpp
diff --git a/bench/VertBench.cpp b/bench/VertBench.cpp
index 39602b07aaf5d69b4a13b90a3408ef57ad52dd4e..3f075281429cdb56985423f4f6e98b1b74c67369 100644
--- a/bench/VertBench.cpp
+++ b/bench/VertBench.cpp
@@ -77,11 +77,11 @@ public:
protected:
virtual const char* onGetName() { return fName.c_str(); }
- virtual void onDraw(SkCanvas* canvas) {
+ virtual void onDraw(const int loops, SkCanvas* canvas) {
SkPaint paint;
this->setupPaint(&paint);
- for (int i = 0; i < this->getLoops(); i++) {
+ for (int i = 0; i < loops; i++) {
canvas->drawVertices(SkCanvas::kTriangles_VertexMode, PTS,
fPts, NULL, fColors, NULL, fIdx, IDX, paint);
}
« no previous file with comments | « bench/TileBench.cpp ('k') | bench/WritePixelsBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698