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

Side by Side Diff: bench/nanobench.cpp

Issue 1184673006: When --mpd is true, run _mpd variants first, then non-mpd. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | 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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 SkDebugf("Can't parse %s from --scales as an SkScalar.\n", FLAGS _scales[i]); 576 SkDebugf("Can't parse %s from --scales as an SkScalar.\n", FLAGS _scales[i]);
577 exit(1); 577 exit(1);
578 } 578 }
579 } 579 }
580 580
581 if (2 != sscanf(FLAGS_zoom[0], "%f,%d", &fZoomScale, &fZoomSteps)) { 581 if (2 != sscanf(FLAGS_zoom[0], "%f,%d", &fZoomScale, &fZoomSteps)) {
582 SkDebugf("Can't parse %s from --zoom as a scale,step.\n", FLAGS_zoom [0]); 582 SkDebugf("Can't parse %s from --zoom as a scale,step.\n", FLAGS_zoom [0]);
583 exit(1); 583 exit(1);
584 } 584 }
585 585
586 fUseMPDs.push_back() = false;
587 if (FLAGS_mpd) { 586 if (FLAGS_mpd) {
588 fUseMPDs.push_back() = true; 587 fUseMPDs.push_back() = true;
589 } 588 }
589 fUseMPDs.push_back() = false;
590 590
591 // Prepare the images for decoding 591 // Prepare the images for decoding
592 for (int i = 0; i < FLAGS_images.count(); i++) { 592 for (int i = 0; i < FLAGS_images.count(); i++) {
593 const char* flag = FLAGS_images[i]; 593 const char* flag = FLAGS_images[i];
594 if (sk_isdir(flag)) { 594 if (sk_isdir(flag)) {
595 // If the value passed in is a directory, add all the images 595 // If the value passed in is a directory, add all the images
596 SkOSFile::Iter it(flag); 596 SkOSFile::Iter it(flag);
597 SkString file; 597 SkString file;
598 while (it.next(&file)) { 598 while (it.next(&file)) {
599 fImages.push_back() = SkOSPath::Join(flag, file.c_str()); 599 fImages.push_back() = SkOSPath::Join(flag, file.c_str());
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 1100
1101 return 0; 1101 return 0;
1102 } 1102 }
1103 1103
1104 #if !defined SK_BUILD_FOR_IOS 1104 #if !defined SK_BUILD_FOR_IOS
1105 int main(int argc, char** argv) { 1105 int main(int argc, char** argv) {
1106 SkCommandLineFlags::Parse(argc, argv); 1106 SkCommandLineFlags::Parse(argc, argv);
1107 return nanobench_main(); 1107 return nanobench_main();
1108 } 1108 }
1109 #endif 1109 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698