diff options
author | ethannicholas <ethannicholas@google.com> | 2016-10-27 08:15:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-27 08:15:50 -0700 |
commit | cffaa70896fa5bc6c7bf98abbaafb1a755b49762 (patch) | |
tree | c77ceac8b52452b914c9a0f900b2114537b8bff8 /tests/SkSLErrorTest.cpp | |
parent | 7929e3ae76719f65111e4fe7a2f2444d53228c2b (diff) |
Reduced skslc memory consumption
The big change here is smarter generic type handling which allows us to
keep far fewer entries in the core symboltable. This also comments out
a number of OpenGL builtin functions which Skia does not use and is
unlikely to in the future.
BUG=655673
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2442063002
Review-Url: https://codereview.chromium.org/2442063002
Diffstat (limited to 'tests/SkSLErrorTest.cpp')
-rw-r--r-- | tests/SkSLErrorTest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/SkSLErrorTest.cpp b/tests/SkSLErrorTest.cpp index 47e31e6ee4..3afb64fe61 100644 --- a/tests/SkSLErrorTest.cpp +++ b/tests/SkSLErrorTest.cpp @@ -43,7 +43,12 @@ DEF_TEST(SkSLUndefinedFunction, r) { DEF_TEST(SkSLGenericArgumentMismatch, r) { test_failure(r, "void main() { float x = sin(1, 2); }", - "error: 1: no match for sin(int, int)\n1 error\n"); + "error: 1: call to 'sin' expected 1 argument, but found 2\n1 error\n"); + test_failure(r, + "void main() { float x = sin(true); }", + "error: 1: no match for sin(bool)\n1 error\n"); + test_success(r, + "void main() { float x = sin(1); }"); } DEF_TEST(SkSLArgumentCountMismatch, r) { |