Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index f189bb1776f0a765477844b8c1746cd57785e5f7..2c686ece287d1a3b949deef14cffe8139b624fd7 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -228,6 +228,8 @@ void SkGradientShaderBase::flatten(SkWriteBuffer& buffer) const { |
desc.flatten(buffer); |
} |
+#if SK_SUPPORT_GPU |
+ |
static inline bool close_to_one_half(const SkFixed& val) { |
return SkScalarNearlyEqual(SkFixedToScalar(val), SK_ScalarHalf); |
} |
@@ -271,6 +273,7 @@ GrGradientEffect::ColorType GrGradientEffect::determineColorTypeAndNumHardStops( |
return kTexture_ColorType; |
} |
+#endif |
void SkGradientShaderBase::FlipGradientColors(SkColor* colorDst, Rec* recDst, |
SkColor* colorSrc, Rec* recSrc, |