| 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 #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_DEVELOPER | 13 #ifdef SK_DEBUG |
| 14 | 14 |
| 15 /** This class overrides all the draw methods on SkCanvas, and formats them | 15 /** This class overrides all the draw methods on SkCanvas, and formats them |
| 16 as text, and then sends that to a Dumper helper object. | 16 as text, and then sends that to a Dumper helper object. |
| 17 | 17 |
| 18 Typical use might be to dump a display list to a log file to see what is | 18 Typical use might be to dump a display list to a log file to see what is |
| 19 being drawn. | 19 being drawn. |
| 20 */ | 20 */ |
| 21 class SkDumpCanvas : public SkCanvas { | 21 class SkDumpCanvas : public SkCanvas { |
| 22 public: | 22 public: |
| 23 class Dumper; | 23 class Dumper; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 public: | 159 public: |
| 160 SkDebugfDumper(); | 160 SkDebugfDumper(); |
| 161 | 161 |
| 162 private: | 162 private: |
| 163 typedef SkFormatDumper INHERITED; | 163 typedef SkFormatDumper INHERITED; |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 #endif | 166 #endif |
| 167 | 167 |
| 168 #endif | 168 #endif |
| OLD | NEW |