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

Unified Diff: bench/SkLinearBitmapPipelineBench.cpp

Issue 1705203002: Add bilerp filtering. (Closed) Base URL: https://skia.googlesource.com/skia.git@fp-simple-linear-20160217
Patch Set: Redo bilerp. Created 4 years, 10 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 | gm/SkLinearBitmapPipelineGM.cpp » ('j') | src/core/SkLinearBitmapPipeline.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/SkLinearBitmapPipelineBench.cpp
diff --git a/bench/SkLinearBitmapPipelineBench.cpp b/bench/SkLinearBitmapPipelineBench.cpp
index 149e9e2bad17c88b7f8e21530dae42d263917c46..cc5d0850e86161b9ac6109299db65f767180d821 100644
--- a/bench/SkLinearBitmapPipelineBench.cpp
+++ b/bench/SkLinearBitmapPipelineBench.cpp
@@ -134,7 +134,15 @@ struct SkBitmapFPGeneral final : public CommonBitmapFPBenchmark {
SkAutoTMalloc<SkPM4f> FPbuffer(width*height);
- SkLinearBitmapPipeline pipeline{fInvert, fXTile, fYTile, fInfo, fBitmap.get(), };
+ SkFilterQuality filterQuality;
+ if (fUseBilerp) {
+ filterQuality = SkFilterQuality::kLow_SkFilterQuality;
+ } else {
+ filterQuality = SkFilterQuality::kNone_SkFilterQuality;
+ }
+
+ SkLinearBitmapPipeline pipeline{
+ fInvert, filterQuality, fXTile, fYTile, fInfo, fBitmap.get() };
int count = 100;
« no previous file with comments | « no previous file | gm/SkLinearBitmapPipelineGM.cpp » ('j') | src/core/SkLinearBitmapPipeline.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698