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

Side by Side Diff: bench/SkBenchLogger.h

Issue 27044002: Clean up SkTypes.h. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: For patch -p1. Created 7 years, 2 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
« no previous file with comments | « no previous file | gyp/common_conditions.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 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 8
9 #ifndef SkBenchLogger_DEFINED 9 #ifndef SkBenchLogger_DEFINED
10 #define SkBenchLogger_DEFINED 10 #define SkBenchLogger_DEFINED
11 11
12 #include "SkTypes.h" 12 #include "SkTypes.h"
13 #include "SkString.h" 13 #include "SkString.h"
14 #include <stdio.h>
14 15
15 class SkFILEWStream; 16 class SkFILEWStream;
16 17
17 /** 18 /**
18 * Class that allows logging to a file while simultaneously logging to stdout/st derr. 19 * Class that allows logging to a file while simultaneously logging to stdout/st derr.
19 */ 20 */
20 class SkBenchLogger { 21 class SkBenchLogger {
21 public: 22 public:
22 SkBenchLogger(); 23 SkBenchLogger();
23 24
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void nativeLogError(const char msg[]) { fprintf(stderr, "%s", msg); } 68 void nativeLogError(const char msg[]) { fprintf(stderr, "%s", msg); }
68 #endif 69 #endif
69 void nativeLogProgress(const char msg[]) { SkDebugf("%s", msg); } 70 void nativeLogProgress(const char msg[]) { SkDebugf("%s", msg); }
70 71
71 void fileWrite(const char msg[], size_t size); 72 void fileWrite(const char msg[], size_t size);
72 73
73 SkFILEWStream* fFileStream; 74 SkFILEWStream* fFileStream;
74 }; 75 };
75 76
76 #endif // SkBenchLogger_DEFINED 77 #endif // SkBenchLogger_DEFINED
OLDNEW
« no previous file with comments | « no previous file | gyp/common_conditions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698