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

Unified Diff: samplecode/SampleAll.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: samplecode/SampleAll.cpp
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp
index 357a437a67acee1a775c59139f589028bf67b3e9..4cd1a34563fe2233378032a979a2bff583a2bb48 100644
--- a/samplecode/SampleAll.cpp
+++ b/samplecode/SampleAll.cpp
@@ -170,7 +170,7 @@ protected:
void flatten(SkWriteBuffer& buffer) const override {
this->INHERITED::flatten(buffer);
- buffer.writeScalar(fRadius);
+ buffer.writeScalar("fRadius", fRadius);
}
private:

Powered by Google App Engine
This is Rietveld 408576698