diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-22 14:32:09 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-22 14:32:09 +0000 |
commit | b83b6b4f7690fe929d8d6b1a3d2b7ed562b95ba6 (patch) | |
tree | 4180ad35a9c5ac2e63b1c4f0056d071ecbf61f2f /samplecode/SampleText.cpp | |
parent | d3c208c53eda490ed6445e39f467de288cf22d85 (diff) |
Added toString to SkXfermode-derived classes (for debugger)
https://codereview.appspot.com/7139058/
git-svn-id: http://skia.googlecode.com/svn/trunk@7308 2bbb7eff-a529-9590-31e7-b0007b416f81
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; |