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

Side by Side Diff: bench/nanobench.cpp

Issue 1610823002: Consolidate SK_CRASH and sk_throw into SK_ABORT (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: windows fix Created 4 years, 11 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 | « bench/ChecksumBench.cpp ('k') | gm/textblob.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 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 <ctype.h> 8 #include <ctype.h>
9 9
10 #include "nanobench.h" 10 #include "nanobench.h"
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 return nullptr; 940 return nullptr;
941 } 941 }
942 942
943 void fillCurrentOptions(ResultsWriter* log) const { 943 void fillCurrentOptions(ResultsWriter* log) const {
944 log->configOption("source_type", fSourceType); 944 log->configOption("source_type", fSourceType);
945 log->configOption("bench_type", fBenchType); 945 log->configOption("bench_type", fBenchType);
946 if (0 == strcmp(fSourceType, "skp")) { 946 if (0 == strcmp(fSourceType, "skp")) {
947 log->configOption("clip", 947 log->configOption("clip",
948 SkStringPrintf("%d %d %d %d", fClip.fLeft, fClip.fTop, 948 SkStringPrintf("%d %d %d %d", fClip.fLeft, fClip.fTop,
949 fClip.fRight, fClip.fBottom).c _str()); 949 fClip.fRight, fClip.fBottom).c _str());
950 SK_ALWAYSBREAK(fCurrentScale < fScales.count()); // debugging paran oia 950 SkASSERT_RELEASE(fCurrentScale < fScales.count()); // debugging par anoia
951 log->configOption("scale", SkStringPrintf("%.2g", fScales[fCurrentSc ale]).c_str()); 951 log->configOption("scale", SkStringPrintf("%.2g", fScales[fCurrentSc ale]).c_str());
952 if (fCurrentUseMPD > 0) { 952 if (fCurrentUseMPD > 0) {
953 SkASSERT(1 == fCurrentUseMPD || 2 == fCurrentUseMPD); 953 SkASSERT(1 == fCurrentUseMPD || 2 == fCurrentUseMPD);
954 log->configOption("multi_picture_draw", fUseMPDs[fCurrentUseMPD- 1] ? "true" : "false"); 954 log->configOption("multi_picture_draw", fUseMPDs[fCurrentUseMPD- 1] ? "true" : "false");
955 } 955 }
956 } 956 }
957 if (0 == strcmp(fBenchType, "recording")) { 957 if (0 == strcmp(fBenchType, "recording")) {
958 log->metric("bytes", fSKPBytes); 958 log->metric("bytes", fSKPBytes);
959 log->metric("ops", fSKPOps); 959 log->metric("ops", fSKPOps);
960 } 960 }
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 1253
1254 return 0; 1254 return 0;
1255 } 1255 }
1256 1256
1257 #if !defined SK_BUILD_FOR_IOS 1257 #if !defined SK_BUILD_FOR_IOS
1258 int main(int argc, char** argv) { 1258 int main(int argc, char** argv) {
1259 SkCommandLineFlags::Parse(argc, argv); 1259 SkCommandLineFlags::Parse(argc, argv);
1260 return nanobench_main(); 1260 return nanobench_main();
1261 } 1261 }
1262 #endif 1262 #endif
OLDNEW
« no previous file with comments | « bench/ChecksumBench.cpp ('k') | gm/textblob.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698