| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |