Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(654)

Unified Diff: src/effects/SkTableColorFilter.cpp

Issue 15697012: Add printing of SkColorFilter-derived classes to debugger (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Remove unnecessary macros Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/effects/SkColorMatrixFilter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkTableColorFilter.cpp
===================================================================
--- src/effects/SkTableColorFilter.cpp (revision 9237)
+++ src/effects/SkTableColorFilter.cpp (working copy)
@@ -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 @@
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 @@
}
}
+#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,
« no previous file with comments | « src/effects/SkColorMatrixFilter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698