e552f925da
Add store(PixelFormat,...) to mirror earlier load/gather. Use store() in SkVMBlitter to let us to write to any format supported by SkColorType_to_PixelFormat(). This means we can read and write all the same formats now. There's a note on the SkColorType enum about some SkColorTypes being read-only, but I've taken that to be descriptive and not proscriptive. It's worth paying attention to grayscale. Gray PixelFormats hold the same bit size and shift for each of r,g,b so load/gather just naturally unpack the same value into each channel. When we want to store gray we need to dot r,g,b together, here back into the red channel to accommodate future gray-alpha. Change-Id: I81ad252a35e2534d2d8c6123354b1d19c7018898 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/302330 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Mike Reed <reed@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
client_utils/android | ||
demos.skia.org | ||
dm | ||
docker | ||
docs/examples | ||
example | ||
experimental | ||
fuzz | ||
gm | ||
gn | ||
include | ||
infra | ||
modules | ||
platform_tools | ||
resources | ||
samplecode | ||
site | ||
specs | ||
src | ||
tests | ||
third_party | ||
tools | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
go.mod | ||
go.sum | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.