Index: bench/SkLinearBitmapPipelineBench.cpp |
diff --git a/bench/SkLinearBitmapPipelineBench.cpp b/bench/SkLinearBitmapPipelineBench.cpp |
index 7d2d4a54ddf4ef8c6e1ee2cc6e568f3ae8354d01..7ab29f699e13260c246b686965b475c757716527 100644 |
--- a/bench/SkLinearBitmapPipelineBench.cpp |
+++ b/bench/SkLinearBitmapPipelineBench.cpp |
@@ -145,7 +145,7 @@ struct SkBitmapFPGeneral final : public CommonBitmapFPBenchmark { |
SkPixmap srcPixmap{fInfo, fBitmap.get(), static_cast<size_t>(4 * width)}; |
SkLinearBitmapPipeline pipeline{ |
- fInvert, filterQuality, fXTile, fYTile, srcPixmap}; |
+ fInvert, filterQuality, fXTile, fYTile, 1.0f, srcPixmap}; |
int count = 100; |
@@ -262,6 +262,31 @@ DEF_BENCH(return new SkBitmapFPOrigShader( |
srcSize, kLinear_SkColorProfileType, mS, true, |
SkShader::kClamp_TileMode, SkShader::kClamp_TileMode);) |
+// Repeat |
+DEF_BENCH(return new SkBitmapFPGeneral( |
+ srcSize, kSRGB_SkColorProfileType, mS, false, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
+DEF_BENCH(return new SkBitmapFPGeneral( |
+ srcSize, kLinear_SkColorProfileType, mS, false, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
+DEF_BENCH(return new SkBitmapFPOrigShader( |
+ srcSize, kLinear_SkColorProfileType, mS, false, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
+DEF_BENCH(return new SkBitmapFPGeneral( |
+ srcSize, kSRGB_SkColorProfileType, mS, true, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
+DEF_BENCH(return new SkBitmapFPGeneral( |
+ srcSize, kLinear_SkColorProfileType, mS, true, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
+DEF_BENCH(return new SkBitmapFPOrigShader( |
+ srcSize, kLinear_SkColorProfileType, mS, true, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
static SkMatrix rotate(SkScalar r) { |
SkMatrix m; |
m.setRotate(30); |
@@ -293,3 +318,29 @@ DEF_BENCH(return new SkBitmapFPOrigShader( |
srcSize, kLinear_SkColorProfileType, mR, true, |
SkShader::kClamp_TileMode, SkShader::kClamp_TileMode);) |
+// Repeat |
+DEF_BENCH(return new SkBitmapFPGeneral( |
+ srcSize, kSRGB_SkColorProfileType, mR, false, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
+DEF_BENCH(return new SkBitmapFPGeneral( |
+ srcSize, kLinear_SkColorProfileType, mR, false, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
+DEF_BENCH(return new SkBitmapFPOrigShader( |
+ srcSize, kLinear_SkColorProfileType, mR, false, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
+DEF_BENCH(return new SkBitmapFPGeneral( |
+ srcSize, kSRGB_SkColorProfileType, mR, true, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
+DEF_BENCH(return new SkBitmapFPGeneral( |
+ srcSize, kLinear_SkColorProfileType, mR, true, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
+DEF_BENCH(return new SkBitmapFPOrigShader( |
+ srcSize, kLinear_SkColorProfileType, mR, true, |
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode);) |
+ |
+ |