Index: src/device/xps/SkXPSDevice.cpp |
diff --git a/src/device/xps/SkXPSDevice.cpp b/src/device/xps/SkXPSDevice.cpp |
index 442a51f507f4b751a8fd22ee76914abe99aa1c10..79bb6efe26b691d3fdc2066644d37a3a4431a593 100644 |
--- a/src/device/xps/SkXPSDevice.cpp |
+++ b/src/device/xps/SkXPSDevice.cpp |
@@ -476,7 +476,7 @@ static XPS_SPREAD_METHOD xps_spread_method(SkShader::TileMode tileMode) { |
case SkShader::kMirror_TileMode: |
return XPS_SPREAD_METHOD_REFLECT; |
default: |
- SkASSERT(!"Unknown tile mode."); |
+ SkDEBUGFAIL("Unknown tile mode."); |
} |
return XPS_SPREAD_METHOD_PAD; |
} |
@@ -1370,7 +1370,7 @@ HRESULT SkXPSDevice::addXpsPathGeometry( |
// the corresponding line/quad/cubic verbs |
break; |
default: |
- SkASSERT(!"unexpected verb"); |
+ SkDEBUGFAIL("unexpected verb"); |
break; |
} |
} |
@@ -1879,7 +1879,7 @@ void SkXPSDevice::drawPath(const SkDraw& d, |
break; |
} |
default: |
- SkASSERT(!"Unknown SkPath::FillType."); |
+ SkDEBUGFAIL("Unknown SkPath::FillType."); |
} |
HRVM(shadedGeometry->SetFillRule(xpsFillRule), |
"Could not set fill rule for shaded path."); |
@@ -2125,7 +2125,7 @@ HRESULT SkXPSDevice::AddGlyphs(const SkDraw& d, |
"Could not set transform matrix."); |
useCanvasForClip = true; |
} else { |
- SkASSERT(!"Attempt to add glyphs in perspective."); |
+ SkDEBUGFAIL("Attempt to add glyphs in perspective."); |
useCanvasForClip = false; |
} |
} |