aboutsummaryrefslogtreecommitdiffhomepage
path: root/fuzz
diff options
context:
space:
mode:
authorGravatar ethannicholas <ethannicholas@google.com>2016-10-20 09:54:00 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-20 09:54:00 -0700
commitddb37d67ba4db42fa5c6012b58d0f4985b454dc0 (patch)
treeb456baa999164506a397509b20be0c8fdc413f7a /fuzz
parent4a5e49dc6e970c4edb21f0797774082181682163 (diff)
re-re-land of skslc now automatically turns on derivatives support
Only change from last attempt is putting the call to shaderDerivativeExtensionString behind a check for shaderDerivativeSupport to avoid a spurious assertion failure. TBR=benjaminwagner@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2437063002 Review-Url: https://chromiumcodereview.appspot.com/2437063002
Diffstat (limited to 'fuzz')
-rw-r--r--fuzz/fuzz.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/fuzz/fuzz.cpp b/fuzz/fuzz.cpp
index cbfb74415c..a4151359b8 100644
--- a/fuzz/fuzz.cpp
+++ b/fuzz/fuzz.cpp
@@ -406,23 +406,11 @@ int fuzz_color_deserialize(sk_sp<SkData> bytes) {
return 0;
}
-static SkSL::GLCaps default_caps() {
- return {
- 400,
- SkSL::GLCaps::kGL_Standard,
- false, // isCoreProfile
- false, // usesPrecisionModifiers;
- false, // mustDeclareFragmentShaderOutput
- true, // canUseMinAndAbsTogether
- false // mustForceNegatedAtanParamToFloat
- };
-}
-
int fuzz_sksl2glsl(sk_sp<SkData> bytes) {
SkSL::Compiler compiler;
std::string output;
bool result = compiler.toGLSL(SkSL::Program::kFragment_Kind,
- (const char*)bytes->data(), default_caps(), &output);
+ (const char*)bytes->data(), SkSL::GLCaps(), &output);
if (!result) {
SkDebugf("[terminated] Couldn't compile input.\n");