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

Side by Side Diff: src/core/SkPathEffect.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkPathEffect.h" 8 #include "SkPathEffect.h"
9 #include "SkPath.h" 9 #include "SkPath.h"
10 #include "SkReadBuffer.h" 10 #include "SkReadBuffer.h"
(...skipping 20 matching lines...) Expand all
31 : fPE0(std::move(pe0)), fPE1(std::move(pe1)) 31 : fPE0(std::move(pe0)), fPE1(std::move(pe1))
32 { 32 {
33 SkASSERT(fPE0.get()); 33 SkASSERT(fPE0.get());
34 SkASSERT(fPE1.get()); 34 SkASSERT(fPE1.get());
35 } 35 }
36 36
37 /* 37 /*
38 Format: [oe0-factory][pe1-factory][pe0-size][pe0-data][pe1-data] 38 Format: [oe0-factory][pe1-factory][pe0-size][pe0-data][pe1-data]
39 */ 39 */
40 void SkPairPathEffect::flatten(SkWriteBuffer& buffer) const { 40 void SkPairPathEffect::flatten(SkWriteBuffer& buffer) const {
41 buffer.writeFlattenable(fPE0.get()); 41 buffer.writeFlattenable("fPE0", fPE0.get());
42 buffer.writeFlattenable(fPE1.get()); 42 buffer.writeFlattenable("fPE1", fPE1.get());
43 } 43 }
44 44
45 #ifndef SK_IGNORE_TO_STRING 45 #ifndef SK_IGNORE_TO_STRING
46 void SkPairPathEffect::toString(SkString* str) const { 46 void SkPairPathEffect::toString(SkString* str) const {
47 str->appendf("first: "); 47 str->appendf("first: ");
48 if (fPE0) { 48 if (fPE0) {
49 fPE0->toString(str); 49 fPE0->toString(str);
50 } 50 }
51 str->appendf(" second: "); 51 str->appendf(" second: ");
52 if (fPE1) { 52 if (fPE1) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 101
102 #ifndef SK_IGNORE_TO_STRING 102 #ifndef SK_IGNORE_TO_STRING
103 void SkSumPathEffect::toString(SkString* str) const { 103 void SkSumPathEffect::toString(SkString* str) const {
104 str->appendf("SkSumPathEffect: ("); 104 str->appendf("SkSumPathEffect: (");
105 this->INHERITED::toString(str); 105 this->INHERITED::toString(str);
106 str->appendf(")"); 106 str->appendf(")");
107 } 107 }
108 #endif 108 #endif
OLDNEW
« include/core/SkWriteBuffer.h ('K') | « src/core/SkPaint.cpp ('k') | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698