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

Unified Diff: samplecode/ClockFaceView.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/ClockFaceView.cpp
diff --git a/samplecode/ClockFaceView.cpp b/samplecode/ClockFaceView.cpp
index 6e2b2b158519ef2acefcb126bc087c7c1d62d2f8..ae8c7ad3a64229b5d1a44d45403c90dd1ca20a55 100644
--- a/samplecode/ClockFaceView.cpp
+++ b/samplecode/ClockFaceView.cpp
@@ -90,8 +90,8 @@ protected:
}
void flatten(SkWriteBuffer& buffer) const override {
- buffer.writeMatrix(this->getMatrix());
- buffer.writeScalar(fRadius);
+ buffer.writeMatrix("matrix", this->getMatrix());
+ buffer.writeScalar("fRadius", fRadius);
}
private:

Powered by Google App Engine
This is Rietveld 408576698