Fix to lcd blending in ganesh
authorGreg Daniel <egdaniel@google.com>
Mon, 22 May 2017 19:56:22 +0000 (15:56 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 22 May 2017 20:35:17 +0000 (20:35 +0000)
commit79cdf28c51c8f8ff83575677419f95c0657fa077
tree3201d68565bfaa16b739c69a54311d12d7aa4c3e
parent4e3bc86a42f499343e8648d4d0dfe602b247db19
Fix to lcd blending in ganesh

This fixes the bug where a src color may originally be opaque but after
blending it is no longer opaque. We need to know the opacity after the
blend so this restricts us on which blend modes even work this way.

Bug: skia:
Change-Id: Ib3208887d718e5f25272ed7b0bf44683d04884d7
Reviewed-on: https://skia-review.googlesource.com/17488
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
src/gpu/effects/GrPorterDuffXferProcessor.cpp
tests/GrPorterDuffTest.cpp