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

Unified Diff: gm/SkLinearBitmapPipelineGM.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
Index: gm/SkLinearBitmapPipelineGM.cpp
diff --git a/gm/SkLinearBitmapPipelineGM.cpp b/gm/SkLinearBitmapPipelineGM.cpp
index 845e33979f5da0eba8c6589b980c9454d63871f5..0b5fddf182820755b87a7778af5317b475af237a 100644
--- a/gm/SkLinearBitmapPipelineGM.cpp
+++ b/gm/SkLinearBitmapPipelineGM.cpp
@@ -119,9 +119,10 @@ static void draw_rect_fp(SkCanvas* canvas, const SkRect& r, SkColor c, const SkM
//}
auto procN = SkXfermode::GetD32Proc(nullptr, flags);
+ SkColor paintColor = SkColorSetARGB(255, 0 , 0, 0);
SkLinearBitmapPipeline pipeline{
inv, filterQuality,
- SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, 1.0f, pmsrc};
+ SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, paintColor, pmsrc};
f(malita) 2016/05/13 16:10:39 Nit: ditto
herb_g 2016/05/13 16:42:24 Done.
for (int y = 0; y < ir.height(); y++) {
pipeline.shadeSpan4f(0, y, dstBits, ir.width());

Powered by Google App Engine
This is Rietveld 408576698