SkGradientShader.cpp: fix build when SK_SUPPORT_GPU=0
NOTRY=true GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2235863002 Review-Url: https://codereview.chromium.org/2235863002
This commit is contained in:
parent
ceeaa78713
commit
cb0f4c3404
@ -228,6 +228,8 @@ void SkGradientShaderBase::flatten(SkWriteBuffer& buffer) const {
|
|||||||
desc.flatten(buffer);
|
desc.flatten(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SK_SUPPORT_GPU
|
||||||
|
|
||||||
static inline bool close_to_one_half(const SkFixed& val) {
|
static inline bool close_to_one_half(const SkFixed& val) {
|
||||||
return SkScalarNearlyEqual(SkFixedToScalar(val), SK_ScalarHalf);
|
return SkScalarNearlyEqual(SkFixedToScalar(val), SK_ScalarHalf);
|
||||||
}
|
}
|
||||||
@ -271,6 +273,7 @@ GrGradientEffect::ColorType GrGradientEffect::determineColorTypeAndNumHardStops(
|
|||||||
|
|
||||||
return kTexture_ColorType;
|
return kTexture_ColorType;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void SkGradientShaderBase::FlipGradientColors(SkColor* colorDst, Rec* recDst,
|
void SkGradientShaderBase::FlipGradientColors(SkColor* colorDst, Rec* recDst,
|
||||||
SkColor* colorSrc, Rec* recSrc,
|
SkColor* colorSrc, Rec* recSrc,
|
||||||
|
Loading…
Reference in New Issue
Block a user