diff options
Diffstat (limited to 'samplecode/SampleText.cpp')
-rw-r--r-- | samplecode/SampleText.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/samplecode/SampleText.cpp b/samplecode/SampleText.cpp index 20673eed21..b71d844a95 100644 --- a/samplecode/SampleText.cpp +++ b/samplecode/SampleText.cpp @@ -124,6 +124,7 @@ public: typedef SkFlattenable* (*Factory)(SkFlattenableReadBuffer&); + SK_DEVELOPER_TO_STRING() SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkPowerMode) private: @@ -173,6 +174,13 @@ void SkPowerMode::xfer16(uint16_t dst[], const SkPMColor src[], int count, } } +#ifdef SK_DEVELOPER +void SkPowerMode::toString(SkString* str) const { + str->append("SkPowerMode: exponent "); + str->appendScalar(fExp); +} +#endif + static const struct { const char* fName; uint32_t fFlags; |