diff options
author | Romain Guy <romainguy@google.com> | 2016-12-12 18:21:32 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2016-12-12 18:50:07 -0800 |
commit | a0ed6f03f6f06eb41cbcc15c0a99b4a78fd91bef (patch) | |
tree | f6eeb56420b457fe9955f21548ca12e6cf7ec68e /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 84cac20dfdff35932901e978e6b6d3da843a2fa7 (diff) |
Pre-multiply gradient colors the right way
Alpha pre-multiplication must be done after applying the
opto-electronic transfer function when linear blending is
disabled. The correct way would be to pre-multiply before
gamma encoding but this leads to improper blending which
cannot be corrected without using sRGB frame buffers and
texture sampling.
Bug: 33010587
Test: cts-tradefed run singleCommand cts-dev --module CtsUiRenderingTestCases --test android.uirendering.cts.testclasses.GradientTests
Change-Id: I5f04bda4cb9f63674537aef5931621c14d601884
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions