| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * 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 |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 * | 6 * |
| 7 * Classes for writing out bench results in various formats. | 7 * Classes for writing out bench results in various formats. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 #ifndef SkResultsWriter_DEFINED | 10 #ifndef SkResultsWriter_DEFINED |
| 11 #define SkResultsWriter_DEFINED | 11 #define SkResultsWriter_DEFINED |
| 12 | 12 |
| 13 #include "BenchLogger.h" | 13 #include "BenchLogger.h" |
| 14 #include "SkJSONCPP.h" | 14 #include "SkJSONCPP.h" |
| 15 #include "SkOSFile.h" | 15 #include "SkOSFile.h" |
| 16 #include "SkStream.h" | 16 #include "SkStream.h" |
| 17 #include "SkString.h" | 17 #include "SkString.h" |
| 18 #include "SkTArray.h" | |
| 19 #include "SkTypes.h" | 18 #include "SkTypes.h" |
| 20 | 19 |
| 21 /** | 20 /** |
| 22 * Base class for writing out the bench results. | 21 * Base class for writing out the bench results. |
| 23 * | 22 * |
| 24 * Default implementation does nothing. | 23 * Default implementation does nothing. |
| 25 */ | 24 */ |
| 26 class ResultsWriter : SkNoncopyable { | 25 class ResultsWriter : SkNoncopyable { |
| 27 public: | 26 public: |
| 28 virtual ~ResultsWriter() {} | 27 virtual ~ResultsWriter() {} |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 private: | 130 private: |
| 132 SkString fFilename; | 131 SkString fFilename; |
| 133 Json::Value fRoot; | 132 Json::Value fRoot; |
| 134 Json::Value& fResults; | 133 Json::Value& fResults; |
| 135 Json::Value* fBench; | 134 Json::Value* fBench; |
| 136 Json::Value* fConfig; | 135 Json::Value* fConfig; |
| 137 }; | 136 }; |
| 138 | 137 |
| 139 | 138 |
| 140 #endif | 139 #endif |
| OLD | NEW |