commit | cc6961b9ac5e3ae7241ba5c625dd512476d7c7c6 | [log] [tgz] |
---|---|---|
author | John Stiles <johnstiles@google.com> | Fri Jan 22 09:49:45 2021 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Jan 22 15:47:19 2021 +0000 |
tree | bcad52806f3723296317d27b8eafecbfb5e05979 | |
parent | 2cfdd7f6a4dac090ba63f8b78f1e8868aa9f3dac [diff] |
Add checkpointing functionality to SkSL Lexer. The lexer can be reset to an earlier state simply by overwriting its offset to a previous position. Change-Id: I571c7981dbec3c43a894fe599f2e2a167bc380df Reviewed-on: https://skia-review.googlesource.com/c/skia/+/356976 Reviewed-by: Ethan Nicholas <ethannicholas@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Auto-Submit: John Stiles <johnstiles@google.com>