OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkTableMaskFilter.h" | 10 #include "SkTableMaskFilter.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 122 } |
123 } | 123 } |
124 SkDebugf("%d %d start [%d]", min, max, j); | 124 SkDebugf("%d %d start [%d]", min, max, j); |
125 for (; j < 256; j++) { | 125 for (; j < 256; j++) { |
126 SkDebugf(" %d", table[j]); | 126 SkDebugf(" %d", table[j]); |
127 } | 127 } |
128 SkDebugf("\n\n"); | 128 SkDebugf("\n\n"); |
129 #endif | 129 #endif |
130 } | 130 } |
131 | 131 |
132 #ifdef SK_DEVELOPER | 132 #ifndef SK_IGNORE_TO_STRING |
133 void SkTableMaskFilter::toString(SkString* str) const { | 133 void SkTableMaskFilter::toString(SkString* str) const { |
134 str->append("SkTableMaskFilter: ("); | 134 str->append("SkTableMaskFilter: ("); |
135 | 135 |
136 str->append("table: "); | 136 str->append("table: "); |
137 for (int i = 0; i < 255; ++i) { | 137 for (int i = 0; i < 255; ++i) { |
138 str->appendf("%d, ", fTable[i]); | 138 str->appendf("%d, ", fTable[i]); |
139 } | 139 } |
140 str->appendf("%d", fTable[255]); | 140 str->appendf("%d", fTable[255]); |
141 | 141 |
142 str->append(")"); | 142 str->append(")"); |
143 } | 143 } |
144 #endif | 144 #endif |
OLD | NEW |