447f33105a
store() returns a success bool only because it can, because it wasn't going to return any sort of skvm::Value anyway. But it should never fail given a well-formed skvm::PixelFormat, e.g. one from SkColorType_to_PixelFormat. So move the "error handling" inside, really just asserting/assuming it doesn't fail. And similarly, skvm::SkColorType_to_PixelFormat() can no longer fail, so have it return the skvm::PixelFormat directly instead of the bool I used to stage things back when building this out. Change-Id: I6dc3b6da32cdaaef377fe59b8c94846e902841ee Reviewed-on: https://skia-review.googlesource.com/c/skia/+/367796 Reviewed-by: Brian Osman <brianosman@google.com> Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Mike Klein <mtklein@google.com> |
||
---|---|---|
animations | ||
bazel | ||
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 | ||
.bazelignore | ||
.clang-format | ||
.clang-tidy | ||
.gitignore | ||
.gn | ||
AUTHORS | ||
BUILD.bazel | ||
BUILD.gn | ||
codereview.settings | ||
CONTRIBUTING | ||
CQ_COMMITTERS | ||
DEPS | ||
DIR_METADATA | ||
go.mod | ||
go.sum | ||
LICENSE | ||
PRESUBMIT.py | ||
public.bzl | ||
README | ||
README.chromium | ||
RELEASE_NOTES.txt | ||
whitespace.txt | ||
WORKSPACE.bazel |
Skia is a complete 2D graphic library for drawing Text, Geometries, and Images. See full details, and build instructions, at https://skia.org.