Index: src/effects/gradients/SkGradientShader.cpp |
diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp |
index 3a28da8099501708cf9ced29befa7154207293c7..4f174d72b9f120f4bf967c6744b270cc4eb7e1a1 100644 |
--- a/src/effects/gradients/SkGradientShader.cpp |
+++ b/src/effects/gradients/SkGradientShader.cpp |
@@ -76,7 +76,7 @@ SkGradientShaderBase::SkGradientShaderBase(const Descriptor& desc, const SkMatri |
fPtsToUnit.getType(); // Precache so reads are threadsafe. |
SkASSERT(desc.fCount > 1); |
- fGradFlags = SkToU8(desc.fGradFlags); |
+ fGradFlags = static_cast<uint8_t>(desc.fGradFlags); |
SkASSERT((unsigned)desc.fTileMode < SkShader::kTileModeCount); |
SkASSERT(SkShader::kTileModeCount == SK_ARRAY_COUNT(gTileProcs)); |