8f233fc795
Previously we only added marked-content IDs to text commands. Extend this to support marking bitmaps drawn to a PDF document too, so that images can be tagged with alt text. Moves the code that outputs the marked content ID and closing tag into a scoped helper class that outputs the closing sequence on destruction. Note: we'll probably want to do this to nearly all drawing commands, since nearly everything could in theory be tagged. This change is safe because it's still behind a flag in Chromium and if the document doesn't have any structure tree, it won't output anything. Bug: chromium:607777 Change-Id: I4d7d655857fa7e76c6a6914a2a83097be917d835 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/275517 Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org> Reviewed-by: Derek Sollenberger <djsollen@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
build/fuchsia | ||
build_overrides | ||
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.