diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-08-14 10:35:37 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-14 16:19:44 +0000 |
commit | 08b79b73a080af15a4ab05bd69f307a39c34016b (patch) | |
tree | 791c173faa099fd63a4988b228f88835369ec260 /src/sksl/SkSLParser.h | |
parent | 10d4244e0a01ca966a4bdd56ba934c4843f4876d (diff) |
reduced number of string copies in SkSL parser
Bug: skia:
Change-Id: Iab823b01b6f5f85bbb47c4ac69c6ce396dabf497
Reviewed-on: https://skia-review.googlesource.com/34000
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/SkSLParser.h')
-rw-r--r-- | src/sksl/SkSLParser.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sksl/SkSLParser.h b/src/sksl/SkSLParser.h index e820484591..22ef7bc1e9 100644 --- a/src/sksl/SkSLParser.h +++ b/src/sksl/SkSLParser.h @@ -64,9 +64,11 @@ public: private: /** - * Return the next token, including whitespace tokens, from the parse stream. + * Return the next token, including whitespace tokens, from the parse stream. If needText is + * false, the token's text is only filled in if it is a token with variable text (identifiers, + * numbers, etc.). */ - Token nextRawToken(); + Token nextRawToken(bool needText); /** * Return the next non-whitespace token from the parse stream. |