commit | 218b516e7b2248bae53132b97822702dac4c8abc | [log] [tgz] |
---|---|---|
author | Florin Malita <fmalita@chromium.org> | Wed Aug 02 17:25:23 2017 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Aug 02 17:26:18 2017 |
tree | d4cd7e7c4336e989cc045a235737d9d9c91f185b | |
parent | 20ea7747f0db83718af1affd8bb72881f85ab0f7 [diff] |
Fix premul state in from_srgb in convert_with_pipeline Without this patch, the pipeline 1. converts to unpremultiplied 2. applies the sRGB transfer assuming the pixel is premultiplied In step 2, we should assume the pixel is unpremultiplied. Bug:738517 Change-Id: Ic11fcf64faa423577ccb1cfc0cfe96feb57db09a Reviewed-on: https://skia-review.googlesource.com/28404 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Klein <mtklein@google.com> No-Tree-Checks: true No-Try: true No-Presubmit: true Cherry-Pick: 179849efe5f5bb20e7036bb6e5a9f4bb9ad8b2f1 Approval: https://crbug.com/738517#c19 Change-Id: I637716ca2b722b863491e2bd66f6c7ed7e1fac0e Reviewed-on: https://skia-review.googlesource.com/30041 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>