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 <mtklein@chromium.org> Reviewed-by: Mike Klein <mtklein@chromium.org>
This commit is contained in:
parent
5de25aa140
commit
03a787968a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user