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

Unified Diff: src/effects/SkDashPathEffect.cpp

Issue 1911963008: DNC - JSON of flattenables, with field names. Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add names to call sites Created 4 years, 8 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
Index: src/effects/SkDashPathEffect.cpp
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp
index 90af32ec5b0fb6686699271f2c888704207a65d4..c68f525c7471c12cc04a64824bb3ff5d4c828c13 100644
--- a/src/effects/SkDashPathEffect.cpp
+++ b/src/effects/SkDashPathEffect.cpp
@@ -356,8 +356,8 @@ SkPathEffect::DashType SkDashPathEffect::asADash(DashInfo* info) const {
}
void SkDashPathEffect::flatten(SkWriteBuffer& buffer) const {
- buffer.writeScalar(fPhase);
- buffer.writeScalarArray(fIntervals, fCount);
+ buffer.writeScalar("fPhase", fPhase);
+ buffer.writeScalarArray("fIntervals", fIntervals, fCount);
}
sk_sp<SkFlattenable> SkDashPathEffect::CreateProc(SkReadBuffer& buffer) {

Powered by Google App Engine
This is Rietveld 408576698