aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/GrAlphaThresholdFragmentProcessor.fp
diff options
context:
space:
mode:
authorGravatar Ethan Nicholas <ethannicholas@google.com>2017-07-10 15:40:20 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-11 13:50:51 +0000
commitceb4d48ef4839aab9d99d0200dcfe403ccd0cdf3 (patch)
treefe8daf04d9a10810747e78e9a340e8d89ff90692 /src/effects/GrAlphaThresholdFragmentProcessor.fp
parent815486c42f1ca66c81e12d8ccc9fb142e3c10544 (diff)
Re-land "converted GrCircleBlurFragmentProcessor to sksl"
This reverts commit 818ac5a00dfd570d2b291b7524a70ecd4ef55770. Bug: skia: Change-Id: I9bd8a06bd2dbb40bd261d64d6d04daf864bc00a5 Reviewed-on: https://skia-review.googlesource.com/22075 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'src/effects/GrAlphaThresholdFragmentProcessor.fp')
-rw-r--r--src/effects/GrAlphaThresholdFragmentProcessor.fp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/effects/GrAlphaThresholdFragmentProcessor.fp b/src/effects/GrAlphaThresholdFragmentProcessor.fp
index 1cc38c6d76..b576ecf086 100644
--- a/src/effects/GrAlphaThresholdFragmentProcessor.fp
+++ b/src/effects/GrAlphaThresholdFragmentProcessor.fp
@@ -45,17 +45,10 @@ in uniform float outerThreshold;
}
@header {
- #include "SkTypes.h"
- #if SK_SUPPORT_GPU
#include "GrColorSpaceXform.h"
}
-@headerEnd {
- #endif
-}
-
@cpp {
- #if SK_SUPPORT_GPU
inline GrFragmentProcessor::OptimizationFlags GrAlphaThresholdFragmentProcessor::optFlags(
float outerThreshold) {
if (outerThreshold >= 1.0) {
@@ -67,10 +60,6 @@ in uniform float outerThreshold;
}
}
-@cppEnd {
- #endif
-}
-
void main() {
vec4 color = texture(image, sk_TransformedCoords2D[0], colorXform);
vec4 mask_color = texture(mask, sk_TransformedCoords2D[1]);