aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sksl
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-07-18 09:47:43 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-18 14:23:16 +0000
commit07990de8179e98a4ba06d7e66f40b8ec5465bade (patch)
treea78f24d73de7af06fcc0485ab792015100d68d90 /src/sksl
parent9b9510a71182ab88cd82effd6728aaa0584b8dcc (diff)
added sksl support for integerSupport cap
Bug: skia: Change-Id: I7e33af9b845db3f862a3a21cba7f2d56e8ea2909 Reviewed-on: https://skia-review.googlesource.com/24323 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/sksl')
-rw-r--r--src/sksl/SkSLIRGenerator.cpp1
-rw-r--r--src/sksl/SkSLUtil.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/sksl/SkSLIRGenerator.cpp b/src/sksl/SkSLIRGenerator.cpp
index 4165ea9469..1af37227af 100644
--- a/src/sksl/SkSLIRGenerator.cpp
+++ b/src/sksl/SkSLIRGenerator.cpp
@@ -141,6 +141,7 @@ static void fill_caps(const SKSL_CAPS_CLASS& caps,
CAP(mustDeclareFragmentShaderOutput);
CAP(canUseAnyFunctionInShader);
CAP(floatPrecisionVaries);
+ CAP(integerSupport);
#undef CAP
}
diff --git a/src/sksl/SkSLUtil.h b/src/sksl/SkSLUtil.h
index 64f1e8154e..f0951a3c6d 100644
--- a/src/sksl/SkSLUtil.h
+++ b/src/sksl/SkSLUtil.h
@@ -139,6 +139,10 @@ public:
return false;
}
+ bool integerSupport() const {
+ return false;
+ }
+
const char* shaderDerivativeExtensionString() const {
return nullptr;
}