diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-23 14:00:17 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-23 14:00:17 +0000 |
commit | 1202c2ac563cdeb07406872825706b83e335c977 (patch) | |
tree | 93c84c1e9e3d1dfa36a64e17ee42a38cb5cbdd3b /src/effects/SkTableColorFilter.cpp | |
parent | 37add6b3f6238acd2bdcbfec38aed01c03f6a89f (diff) |
Add printing of SkColorFilter-derived classes to debugger
https://codereview.chromium.org/15697012/
git-svn-id: http://skia.googlecode.com/svn/trunk@9255 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects/SkTableColorFilter.cpp')
-rw-r--r-- | src/effects/SkTableColorFilter.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp index 9979fae27b..2c452ff9f7 100644 --- a/src/effects/SkTableColorFilter.cpp +++ b/src/effects/SkTableColorFilter.cpp @@ -4,6 +4,7 @@ #include "SkColorPriv.h" #include "SkFlattenableBuffers.h" #include "SkUnPreMultiply.h" +#include "SkString.h" class SkTable_ColorFilter : public SkColorFilter { public: @@ -47,6 +48,8 @@ public: virtual void filterSpan(const SkPMColor src[], int count, SkPMColor dst[]) const SK_OVERRIDE; + SkDEVCODE(virtual void toString(SkString* str) const SK_OVERRIDE;) + SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkTable_ColorFilter) enum { @@ -148,6 +151,12 @@ void SkTable_ColorFilter::filterSpan(const SkPMColor src[], int count, } } +#ifdef SK_DEVELOPER +void SkTable_ColorFilter::toString(SkString* str) const { + str->append("SkTable_ColorFilter"); +} +#endif + static const uint8_t gCountNibBits[] = { 0, 1, 1, 2, 1, 2, 2, 3, |