Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Unified Diff: src/effects/SkDashPathEffect.cpp

Issue 189643002: Fix underlying issue causing crbug.com/348821. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkDashPathEffect.cpp
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp
index 8be5f1d086734deafa587d9ba76207e4b8f0165d..58706c5b78f52d55bbead6d4f7a8f3634bd838c6 100644
--- a/src/effects/SkDashPathEffect.cpp
+++ b/src/effects/SkDashPathEffect.cpp
@@ -530,12 +530,10 @@ bool SkDashPathEffect::asPoints(PointData* results,
}
SkFlattenable::Factory SkDashPathEffect::getFactory() const {
- return fInitialDashLength < 0 ? NULL : CreateProc;
+ return CreateProc;
}
void SkDashPathEffect::flatten(SkWriteBuffer& buffer) const {
- SkASSERT(fInitialDashLength >= 0);
-
this->INHERITED::flatten(buffer);
buffer.writeInt(fInitialDashIndex);
buffer.writeScalar(fInitialDashLength);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698