From 03a787968a11bdd3b55d771d348702d0db51fd43 Mon Sep 17 00:00:00 2001 From: Mike Klein Date: Mon, 12 Jun 2017 11:18:59 -0400 Subject: [PATCH] append(from_srgb) -> append_from_srgb(kUnpremul) No behavior change here, just using the safe, non-asserting API... Change-Id: I982079a44dad311850b383d1ef44c6f0f4d3edea Reviewed-on: https://skia-review.googlesource.com/19486 Commit-Queue: Mike Klein Reviewed-by: Mike Klein --- tools/picture_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/picture_utils.cpp b/tools/picture_utils.cpp index 5e87639ffc..183e78ec81 100644 --- a/tools/picture_utils.cpp +++ b/tools/picture_utils.cpp @@ -95,7 +95,7 @@ namespace sk_tools { default: SkASSERT(false); // DM doesn't support any other formats, does it? } if (bitmap.info().gammaCloseToSRGB()) { - p.append(SkRasterPipeline::from_srgb); + p.append_from_srgb(kUnpremul_SkAlphaType); } if (bitmap.colorType() == kBGRA_8888_SkColorType) { p.append(SkRasterPipeline::swap_rb);