edf2d727f9
- add a unit test reproducing the bug - fix SkRecorder::reset() to call resetCanvas(bounds) instead of calling resetCanvas(w,h). (It was actually calling resetCanvas(right,top), even worse...) In short, because we were calling this old resetCanvas(), SkRecorder, the SkCanvas* we record into, was presenting bad device bounds, affecting code like where we query the clip to search an R-tree for ops to draw. It was trimmed to only the positive/positive portion of the actual bounds, so content like in the unit test that's all in negative space was erroneously clipped out. I'd like to get rid of these w/h methods altogether but they're still used by some of our test tools and by Android. Change-Id: Ie46f611250de4d655c4357823895ff885b4f3d59 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/245599 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Klein <mtklein@google.com> |
||
---|---|---|
animations | ||
bench | ||
bin | ||
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.