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

Unified Diff: bench/SkLinearBitmapPipelineBench.cpp

Issue 1967283002: All source types working for linear pipeline. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix benchmark. Created 4 years, 7 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') | gm/SkLinearBitmapPipelineGM.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 caf1844f59389c1d8355bb6e481b3bef1c9deacc..e7236a70a301ec0c0f01d913708b3fd2e80183cb 100644
--- a/bench/SkLinearBitmapPipelineBench.cpp
+++ b/bench/SkLinearBitmapPipelineBench.cpp
@@ -145,8 +145,9 @@ struct SkBitmapFPGeneral final : public CommonBitmapFPBenchmark {
SkPixmap srcPixmap{fInfo, fBitmap.get(), static_cast<size_t>(4 * width)};
+ SkColor paintColor = SkColorSetARGB(255, 0 , 0, 0);
SkLinearBitmapPipeline pipeline{
- fInvert, filterQuality, fXTile, fYTile, 1.0f, srcPixmap};
+ fInvert, filterQuality, fXTile, fYTile, paintColor, srcPixmap};
f(malita) 2016/05/13 16:10:39 Nit: s/paintColor/SK_ColorBLACK/
herb_g 2016/05/13 16:42:23 Done.
int count = 100;
« no previous file with comments | « no previous file | gm/SkLinearBitmapPipelineGM.cpp » ('j') | gm/SkLinearBitmapPipelineGM.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698