diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2016-10-18 09:09:49 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-10-18 14:44:31 +0000 |
commit | d7d1997643db3b9b5caaaac235c0e2cd0fa23ec2 (patch) | |
tree | a07313bdd338aaa90198908d927ad622ae22afff /src/sksl/SkSLMain.cpp | |
parent | afc0b0f6a0c182435f316014df4e32460637b732 (diff) |
re-land of skslc now automatically turns on derivatives support
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3602
Change-Id: I822fc23f7d4eac76d5059412706117818f3738f0
Reviewed-on: https://skia-review.googlesource.com/3602
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl/SkSLMain.cpp')
-rw-r--r-- | src/sksl/SkSLMain.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/sksl/SkSLMain.cpp b/src/sksl/SkSLMain.cpp index fe925e0c6e..eb07b4d032 100644 --- a/src/sksl/SkSLMain.cpp +++ b/src/sksl/SkSLMain.cpp @@ -16,18 +16,6 @@ bool endsWith(const std::string& s, const std::string& ending) { return false; } -static SkSL::GLCaps default_caps() { - return { - 400, - SkSL::GLCaps::kGL_Standard, - false, // isCoreProfile - false, // usesPrecisionModifiers; - false, // mustDeclareFragmentShaderOutput - true, // canUseMinAndAbsTogether - false // mustForceNegatedAtanParamToFloat - }; -} - /** * Very simple standalone executable to facilitate testing. */ @@ -69,7 +57,7 @@ int main(int argc, const char** argv) { } else if (endsWith(name, ".glsl")) { std::ofstream out(argv[2], std::ofstream::binary); SkSL::Compiler compiler; - if (!compiler.toGLSL(kind, text, default_caps(), out)) { + if (!compiler.toGLSL(kind, text, SkSL::GLCaps(), out)) { printf("%s", compiler.errorText().c_str()); exit(3); } |