OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
| 7 |
8 #ifndef SkDumpCanvas_DEFINED | 8 #ifndef SkDumpCanvas_DEFINED |
9 #define SkDumpCanvas_DEFINED | 9 #define SkDumpCanvas_DEFINED |
10 | 10 |
11 #include "SkCanvas.h" | 11 #include "SkCanvas.h" |
12 | 12 |
13 #ifdef SK_DEBUG | |
14 | |
15 /** This class overrides all the draw methods on SkCanvas, and formats them | 13 /** This class overrides all the draw methods on SkCanvas, and formats them |
16 as text, and then sends that to a Dumper helper object. | 14 as text, and then sends that to a Dumper helper object. |
17 | 15 |
18 Typical use might be to dump a display list to a log file to see what is | 16 Typical use might be to dump a display list to a log file to see what is |
19 being drawn. | 17 being drawn. |
20 */ | 18 */ |
21 class SkDumpCanvas : public SkCanvas { | 19 class SkDumpCanvas : public SkCanvas { |
22 public: | 20 public: |
23 class Dumper; | 21 class Dumper; |
24 | 22 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 */ | 155 */ |
158 class SkDebugfDumper : public SkFormatDumper { | 156 class SkDebugfDumper : public SkFormatDumper { |
159 public: | 157 public: |
160 SkDebugfDumper(); | 158 SkDebugfDumper(); |
161 | 159 |
162 private: | 160 private: |
163 typedef SkFormatDumper INHERITED; | 161 typedef SkFormatDumper INHERITED; |
164 }; | 162 }; |
165 | 163 |
166 #endif | 164 #endif |
167 | |
168 #endif | |
OLD | NEW |