commit | ce9a5c953da76da6201a279239e32d1fa6c6afe3 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Fri Jul 30 11:20:19 2021 -0400 |
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | Fri Jul 30 16:41:54 2021 +0000 |
tree | 5c685c927186a68e749e4bfa8328b1a599645f85 | |
parent | 1a2e7de8eaf46c8cff112c2acf0093b8ef387762 [diff] |
Allow sampling from SkBlenders. Runtime shaders, color filters, and blenders are all able to sample from a blender. These use the blend-function signature; both a src-color and dst-color must be passed to sample. i.e.: sample(blender, s, d) Change-Id: I3738e6b0b4af6d1d79e62ca1815c80d6a1ae9d6f Bug: skia:12257 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/432056 Commit-Queue: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com>