commit | 560ae27890385ecd2d2dbd2e504a7054e5b17b32 | [log] [tgz] |
---|---|---|
author | Brian Osman <brianosman@google.com> | Tue Sep 15 11:56:44 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Sep 15 17:35:40 2020 +0000 |
tree | 050d2530aa396d15fce64905122be3daa5613b1a | |
parent | 98c512c89d5adb10b24663a2961f3d128bbffa6d [diff] |
In SkCanvas::clipRect, sort incoming rects This makes our behavior more consistent with drawRect (where we always sort rects). It also makes it more consistent between CPU and GPU. (CPU used a technique to implement rect clipping that allowed for unsorted rects, but GPU's clip stack would reject them as empty). Fixes https://github.com/flutter/flutter/issues/38753 Change-Id: Ib91ebaf13d08dfe34105b9ee59021ac491d67bc7 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317110 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com>