| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 | 7 |
| 8 #include "VisualLightweightBenchModule.h" | 8 #include "VisualLightweightBenchModule.h" |
| 9 | 9 |
| 10 #include "ProcStats.h" | 10 #include "ProcStats.h" |
| 11 #include "SkApplication.h" | 11 #include "SkApplication.h" |
| 12 #include "SkCanvas.h" | 12 #include "SkCanvas.h" |
| 13 #include "SkCommandLineFlags.h" | 13 #include "SkCommandLineFlags.h" |
| 14 #include "SkForceLinking.h" | |
| 15 #include "SkGraphics.h" | 14 #include "SkGraphics.h" |
| 16 #include "SkGr.h" | 15 #include "SkGr.h" |
| 17 #include "SkImageDecoder.h" | |
| 18 #include "SkOSFile.h" | 16 #include "SkOSFile.h" |
| 19 #include "SkStream.h" | 17 #include "SkStream.h" |
| 20 #include "Stats.h" | 18 #include "Stats.h" |
| 21 #include "gl/GrGLInterface.h" | 19 #include "gl/GrGLInterface.h" |
| 22 | 20 |
| 23 __SK_FORCE_IMAGE_DECODER_LINKING; | |
| 24 | |
| 25 // Between samples we reset context | 21 // Between samples we reset context |
| 26 // Between frames we swap buffers | 22 // Between frames we swap buffers |
| 27 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); | 23 DEFINE_bool2(verbose, v, false, "enable verbose output from the test driver."); |
| 28 DEFINE_string(outResultsFile, "", "If given, write results here as JSON."); | 24 DEFINE_string(outResultsFile, "", "If given, write results here as JSON."); |
| 29 DEFINE_string(key, "", | 25 DEFINE_string(key, "", |
| 30 "Space-separated key/value pairs to add to JSON identifying this b
uilder."); | 26 "Space-separated key/value pairs to add to JSON identifying this b
uilder."); |
| 31 DEFINE_string(properties, "", | 27 DEFINE_string(properties, "", |
| 32 "Space-separated key/value pairs to add to JSON identifying this r
un."); | 28 "Space-separated key/value pairs to add to JSON identifying this r
un."); |
| 33 DEFINE_int32(samples, 10, "Number of times to time each skp."); | 29 DEFINE_int32(samples, 10, "Number of times to time each skp."); |
| 34 | 30 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 fRecords.push_back(); | 143 fRecords.push_back(); |
| 148 fCurrentSample = 0; | 144 fCurrentSample = 0; |
| 149 return true; | 145 return true; |
| 150 } | 146 } |
| 151 return false; | 147 return false; |
| 152 } | 148 } |
| 153 | 149 |
| 154 bool VisualLightweightBenchModule::onHandleChar(SkUnichar c) { | 150 bool VisualLightweightBenchModule::onHandleChar(SkUnichar c) { |
| 155 return true; | 151 return true; |
| 156 } | 152 } |
| OLD | NEW |