OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
| 8 #include "SkData.h" |
8 #include "SkDumpCanvas.h" | 9 #include "SkDumpCanvas.h" |
9 | |
10 #ifdef SK_DEBUG | |
11 #include "SkData.h" | |
12 #include "SkPatchUtils.h" | 10 #include "SkPatchUtils.h" |
13 #include "SkPicture.h" | 11 #include "SkPicture.h" |
14 #include "SkPixelRef.h" | 12 #include "SkPixelRef.h" |
15 #include "SkRRect.h" | 13 #include "SkRRect.h" |
16 #include "SkString.h" | 14 #include "SkString.h" |
17 #include "SkTextBlob.h" | 15 #include "SkTextBlob.h" |
18 #include <stdarg.h> | 16 #include <stdarg.h> |
19 #include <stdio.h> | 17 #include <stdio.h> |
20 | 18 |
21 // needed just to know that these are all subclassed from SkFlattenable | 19 // needed just to know that these are all subclassed from SkFlattenable |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 fProc(msg.c_str(), fRefcon); | 544 fProc(msg.c_str(), fRefcon); |
547 } | 545 } |
548 | 546 |
549 /////////////////////////////////////////////////////////////////////////////// | 547 /////////////////////////////////////////////////////////////////////////////// |
550 | 548 |
551 static void dumpToDebugf(const char text[], void*) { | 549 static void dumpToDebugf(const char text[], void*) { |
552 SkDebugf("%s\n", text); | 550 SkDebugf("%s\n", text); |
553 } | 551 } |
554 | 552 |
555 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, nullptr) {} | 553 SkDebugfDumper::SkDebugfDumper() : INHERITED(dumpToDebugf, nullptr) {} |
556 | |
557 #endif | |
OLD | NEW |