Index: src/effects/gradients/SkLinearGradient.cpp |
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp |
index 8ad120991d5176c64fb2439dc823eb76082a48a0..a26095e1f2a15c43f1302d526237b9148fb057d1 100644 |
--- a/src/effects/gradients/SkLinearGradient.cpp |
+++ b/src/effects/gradients/SkLinearGradient.cpp |
@@ -51,12 +51,6 @@ static bool use_4f_context(const SkShader::ContextRec& rec, uint32_t flags) { |
#ifdef FORCE_4F_CONTEXT |
return true; |
#else |
- // Perspective not supported in 4f yet. |
- if (rec.fMatrix->hasPerspective() |
- || (rec.fLocalMatrix && rec.fLocalMatrix->hasPerspective())) { |
- return false; |
- } |
- |
return rec.fPreferredDstType == SkShader::ContextRec::kPM4f_DstType |
|| SkToBool(flags & SkLinearGradient::kForce4fContext_PrivateFlag); |
#endif |