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

Unified Diff: src/effects/Sk1DPathEffect.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/Sk1DPathEffect.cpp
diff --git a/src/effects/Sk1DPathEffect.cpp b/src/effects/Sk1DPathEffect.cpp
index 26cd046aa8ad8390a23bbaab64f4cc8071db927d..f64fd4dae7d048dcf17da451a5d302ced57cd0d3 100644
--- a/src/effects/Sk1DPathEffect.cpp
+++ b/src/effects/Sk1DPathEffect.cpp
@@ -158,11 +158,11 @@ sk_sp<SkFlattenable> SkPath1DPathEffect::CreateProc(SkReadBuffer& buffer) {
}
void SkPath1DPathEffect::flatten(SkWriteBuffer& buffer) const {
- buffer.writeScalar(fAdvance);
+ buffer.writeScalar("fAdvance", fAdvance);
if (fAdvance > 0) {
- buffer.writePath(fPath);
- buffer.writeScalar(fInitialOffset);
- buffer.writeUInt(fStyle);
+ buffer.writePath("fPath", fPath);
+ buffer.writeScalar("fInitialOffset", fInitialOffset);
+ buffer.writeUInt("fStyle", fStyle);
}
}

Powered by Google App Engine
This is Rietveld 408576698