Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: include/utils/SkDumpCanvas.h

Issue 2123633002: all dumpcanvas to be built in release (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/utils/SkDumpCanvas.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | src/utils/SkDumpCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698