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

Side by Side Diff: gm/gm.h

Issue 12691009: gm: write all messages to stdout/stderr with "GM:" preamble to distinguish from various debug messa… (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: split_out_stderr Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
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 skiagm_DEFINED 8 #ifndef skiagm_DEFINED
9 #define skiagm_DEFINED 9 #define skiagm_DEFINED
10 10
11 #include "SkBitmap.h" 11 #include "SkBitmap.h"
12 #include "SkCanvas.h" 12 #include "SkCanvas.h"
13 #include "SkDevice.h" 13 #include "SkDevice.h"
14 #include "SkPaint.h" 14 #include "SkPaint.h"
15 #include "SkSize.h" 15 #include "SkSize.h"
16 #include "SkString.h" 16 #include "SkString.h"
17 #include "SkTRegistry.h" 17 #include "SkTRegistry.h"
18 18
19 // Prefix we use for each stderr line, so we can see where the messages are comi ng from.
20 #define GM_PREAMBLE "GM: "
21
19 #define DEF_GM(code) \ 22 #define DEF_GM(code) \
20 static skiagm::GM* SK_MACRO_APPEND_LINE(F_)(void*) { code; } \ 23 static skiagm::GM* SK_MACRO_APPEND_LINE(F_)(void*) { code; } \
21 static skiagm::GMRegistry SK_MACRO_APPEND_LINE(R_)(SK_MACRO_APPEND_LINE(F_ )); 24 static skiagm::GMRegistry SK_MACRO_APPEND_LINE(R_)(SK_MACRO_APPEND_LINE(F_ ));
22 25
23 namespace skiagm { 26 namespace skiagm {
24 27
25 static inline SkISize make_isize(int w, int h) { 28 static inline SkISize make_isize(int w, int h) {
26 SkISize sz; 29 SkISize sz;
27 sz.set(w, h); 30 sz.set(w, h);
28 return sz; 31 return sz;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 SkString fShortName; 103 SkString fShortName;
101 SkColor fBGColor; 104 SkColor fBGColor;
102 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp 105 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp
103 bool fHaveCalledOnceBeforeDraw; 106 bool fHaveCalledOnceBeforeDraw;
104 }; 107 };
105 108
106 typedef SkTRegistry<GM*, void*> GMRegistry; 109 typedef SkTRegistry<GM*, void*> GMRegistry;
107 } 110 }
108 111
109 #endif 112 #endif
OLDNEW
« no previous file with comments | « no previous file | gm/gm_expectations.h » ('j') | gm/tests/outputs/compared-against-different-pixels-images/output-expected/stderr » ('J')

Powered by Google App Engine
This is Rietveld 408576698