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

Unified Diff: bench/HardStopGradientBench.cpp

Issue 2143653002: Add benchmarks for 3 and 4 colors (most common) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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/HardStopGradientBench.cpp
diff --git a/bench/HardStopGradientBench.cpp b/bench/HardStopGradientBench.cpp
index 7ebc51c9ed28cafb8a903c067e1ba8bdb353cc82..3a323fec6fade66f9ea8428158cea8b068f5ad6d 100644
--- a/bench/HardStopGradientBench.cpp
+++ b/bench/HardStopGradientBench.cpp
@@ -97,6 +97,8 @@ private:
};
// Clamp
+DEF_BENCH(return new HardStopGradientBench(SkShader::kClamp_TileMode, 3);)
+DEF_BENCH(return new HardStopGradientBench(SkShader::kClamp_TileMode, 4);)
DEF_BENCH(return new HardStopGradientBench(SkShader::kClamp_TileMode, 5);)
DEF_BENCH(return new HardStopGradientBench(SkShader::kClamp_TileMode, 10);)
DEF_BENCH(return new HardStopGradientBench(SkShader::kClamp_TileMode, 25);)
@@ -104,6 +106,8 @@ DEF_BENCH(return new HardStopGradientBench(SkShader::kClamp_TileMode, 50);)
DEF_BENCH(return new HardStopGradientBench(SkShader::kClamp_TileMode, 100);)
// Repeat
+DEF_BENCH(return new HardStopGradientBench(SkShader::kRepeat_TileMode, 3);)
+DEF_BENCH(return new HardStopGradientBench(SkShader::kRepeat_TileMode, 4);)
DEF_BENCH(return new HardStopGradientBench(SkShader::kRepeat_TileMode, 5);)
DEF_BENCH(return new HardStopGradientBench(SkShader::kRepeat_TileMode, 10);)
DEF_BENCH(return new HardStopGradientBench(SkShader::kRepeat_TileMode, 25);)
@@ -111,6 +115,8 @@ DEF_BENCH(return new HardStopGradientBench(SkShader::kRepeat_TileMode, 50);)
DEF_BENCH(return new HardStopGradientBench(SkShader::kRepeat_TileMode, 100);)
// Mirror
+DEF_BENCH(return new HardStopGradientBench(SkShader::kMirror_TileMode, 3);)
+DEF_BENCH(return new HardStopGradientBench(SkShader::kMirror_TileMode, 4);)
DEF_BENCH(return new HardStopGradientBench(SkShader::kMirror_TileMode, 5);)
DEF_BENCH(return new HardStopGradientBench(SkShader::kMirror_TileMode, 10);)
DEF_BENCH(return new HardStopGradientBench(SkShader::kMirror_TileMode, 25);)
« 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