commit | d567408362bf7847d6000f6786f9a7b2c9d0b88b | [log] [tgz] |
---|---|---|
author | Mike Reed <reed@google.com> | Fri Apr 19 15:00:47 2019 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Apr 19 20:50:22 2019 +0000 |
tree | 5206594c7ae02221b3070a74e4624aac5df66b7d | |
parent | 1c0b05afdef8c0366926d3a5cdbe828ff122cfe2 [diff] |
Add secret draw-behind method This is a variant of drawPaint but is automatically clipped to the bounds of the most recent saveBehind buffer (axis-aligned bounds). No public exposure. Impl is pretty simple (its a variant of drawPaint) - find the most recent saveBehind device bounds - if there is none, draw nothing, else - temporarily intersect the device's clip with that bounds - drawPaint - restore the clip See https://buganizer.corp.google.com/issues/129117085 Change-Id: I7c532e63a80b118fb2416c572b8e0d2abf8cf59a Reviewed-on: https://skia-review.googlesource.com/c/skia/+/209166 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>