aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleText.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-22 14:32:09 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-22 14:32:09 +0000
commitb83b6b4f7690fe929d8d6b1a3d2b7ed562b95ba6 (patch)
tree4180ad35a9c5ac2e63b1c4f0056d071ecbf61f2f /samplecode/SampleText.cpp
parentd3c208c53eda490ed6445e39f467de288cf22d85 (diff)
Added toString to SkXfermode-derived classes (for debugger)
Diffstat (limited to 'samplecode/SampleText.cpp')
-rw-r--r--samplecode/SampleText.cpp8
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;