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

Unified Diff: bench/LightingBench.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/LightingBench.cpp
diff --git a/bench/LightingBench.cpp b/bench/LightingBench.cpp
index 9f25434bcce20e5f3049286fba222e2fa6fea68b..37c098b2f6c207547772b25d3028bd9a06c7c344 100644
--- a/bench/LightingBench.cpp
+++ b/bench/LightingBench.cpp
@@ -26,7 +26,9 @@ protected:
SkRect::MakeWH(FILTER_WIDTH_LARGE, FILTER_HEIGHT_LARGE);
SkPaint paint;
paint.setImageFilter(imageFilter)->unref();
- canvas->drawRect(r, paint);
+ for (int i = 0; i < this->getLoops(); i++) {
+ canvas->drawRect(r, paint);
+ }
}
static SkPoint3 getPointLocation() {
« no previous file with comments | « bench/InterpBench.cpp ('k') | bench/LineBench.cpp » ('j') | bench/MatrixBench.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698