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

Unified Diff: bench/GradientBench.cpp

Issue 476923002: remove internal repeat count from gradient benches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/GradientBench.cpp
diff --git a/bench/GradientBench.cpp b/bench/GradientBench.cpp
index f3e783e78fd3478e96d263f7c9ef7a6f25ec29f1..e5e5fc385f5bfd8f0351d5c52a33476bd5b96db8 100644
--- a/bench/GradientBench.cpp
+++ b/bench/GradientBench.cpp
@@ -207,7 +207,6 @@ class GradientBench : public Benchmark {
enum {
W = 400,
H = 400,
- kRepeat = 15,
};
public:
SkShader* makeShader(GradType gradType, GradData data, SkShader::TileMode tm, float scale) {
@@ -275,7 +274,7 @@ protected:
}
SkRect r = { 0, 0, SkIntToScalar(W), SkIntToScalar(H) };
- for (int i = 0; i < loops * kRepeat; i++) {
+ for (int i = 0; i < loops; i++) {
switch (fGeomType) {
case kRect_GeomType:
canvas->drawRect(r, paint);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698