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 #include "SkDumpCanvas.h" | 9 #include "SkDumpCanvas.h" |
10 | 10 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 vsnprintf(buffer, BUFFER_SIZE, format, args); | 185 vsnprintf(buffer, BUFFER_SIZE, format, args); |
186 va_end(args); | 186 va_end(args); |
187 | 187 |
188 if (fDumper) { | 188 if (fDumper) { |
189 fDumper->dump(this, verb, buffer, paint); | 189 fDumper->dump(this, verb, buffer, paint); |
190 } | 190 } |
191 } | 191 } |
192 | 192 |
193 /////////////////////////////////////////////////////////////////////////////// | 193 /////////////////////////////////////////////////////////////////////////////// |
194 | 194 |
195 void SkDumpCanvas::willSave(SaveFlags flags) { | 195 void SkDumpCanvas::willSave() { |
196 this->dump(kSave_Verb, NULL, "save(0x%X)", flags); | 196 this->dump(kSave_Verb, NULL, "save()"); |
197 this->INHERITED::willSave(flags); | 197 this->INHERITED::willSave(); |
198 } | 198 } |
199 | 199 |
200 SkCanvas::SaveLayerStrategy SkDumpCanvas::willSaveLayer(const SkRect* bounds, co
nst SkPaint* paint, | 200 SkCanvas::SaveLayerStrategy SkDumpCanvas::willSaveLayer(const SkRect* bounds, co
nst SkPaint* paint, |
201 SaveFlags flags) { | 201 SaveFlags flags) { |
202 SkString str; | 202 SkString str; |
203 str.printf("saveLayer(0x%X)", flags); | 203 str.printf("saveLayer(0x%X)", flags); |
204 if (bounds) { | 204 if (bounds) { |
205 str.append(" bounds"); | 205 str.append(" bounds"); |
206 toString(*bounds, &str); | 206 toString(*bounds, &str); |
207 } | 207 } |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 | 519 |
520 /////////////////////////////////////////////////////////////////////////////// | 520 /////////////////////////////////////////////////////////////////////////////// |
521 | 521 |
522 static void dumpToDebugf(const char text[], void*) { | 522 static void dumpToDebugf(const char text[], void*) { |
523 SkDebugf("%s\n", text); | 523 SkDebugf("%s\n", text); |
524 } | 524 } |
525 | 525 |
526 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {} | 526 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, NULL) {} |
527 | 527 |
528 #endif | 528 #endif |
OLD | NEW |