aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/create_sksl_enums.py
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-11-16 11:20:11 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-16 17:52:42 +0000
commit7970765f7db5919ef5c6ad04b1a1bfe6505355c6 (patch)
treee0cee4fbe8ab0598b24331e12c9cf1d750f4a534 /gn/create_sksl_enums.py
parentb5fb7cf0163ccb939f90ecf53ef70732c01f23ae (diff)
Switched SkSL from using raw strings back to STRINGIFY
Stringify was stripping the comments from the strings, whereas raw strings preserve them, which led to an increase in executable size. The only effect of this change is to strip the comments back out. Bug: 784880 Change-Id: Icf2f9cf522cb890179f2e481a3504e8171732705 Reviewed-on: https://skia-review.googlesource.com/72524 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'gn/create_sksl_enums.py')
-rw-r--r--gn/create_sksl_enums.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn/create_sksl_enums.py b/gn/create_sksl_enums.py
index 9a7f9398b8..e7f011559b 100644
--- a/gn/create_sksl_enums.py
+++ b/gn/create_sksl_enums.py
@@ -11,10 +11,10 @@ import sys
src = open(sys.argv[1], 'r')
dst = open(sys.argv[2], 'w')
-dst.write('R"(')
+dst.write('STRINGIFY(')
for line in src.readlines():
if not line.startswith("#"):
dst.write(line)
-dst.write(')"\n')
+dst.write(')\n')
src.close()
dst.close()