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> |
||
---|---|---|
.. | ||
android | ||
atlastext | ||
c | ||
codec | ||
core | ||
effects | ||
fonts | ||
gpu | ||
image | ||
images | ||
lazy | ||
opts | ||
pathops | ||
ports | ||
sfnt | ||
shaders | ||
sksl | ||
svg | ||
utils | ||
xml | ||
xps |