| OLD | NEW |
| 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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 SkDebugf("Can't parse %s from --zoom as a zoomMax,zoomPeriodMs.\n",
FLAGS_zoom[0]); | 599 SkDebugf("Can't parse %s from --zoom as a zoomMax,zoomPeriodMs.\n",
FLAGS_zoom[0]); |
| 600 exit(1); | 600 exit(1); |
| 601 } | 601 } |
| 602 | 602 |
| 603 if (FLAGS_mpd) { | 603 if (FLAGS_mpd) { |
| 604 fUseMPDs.push_back() = true; | 604 fUseMPDs.push_back() = true; |
| 605 } | 605 } |
| 606 fUseMPDs.push_back() = false; | 606 fUseMPDs.push_back() = false; |
| 607 | 607 |
| 608 // Prepare the images for decoding | 608 // Prepare the images for decoding |
| 609 if (!CollectImages(&fImages)) { | 609 if (!CollectImages(FLAGS_images, &fImages)) { |
| 610 exit(1); | 610 exit(1); |
| 611 } | 611 } |
| 612 | 612 |
| 613 // Choose the candidate color types for image decoding | 613 // Choose the candidate color types for image decoding |
| 614 const SkColorType colorTypes[] = | 614 const SkColorType colorTypes[] = |
| 615 { kN32_SkColorType, | 615 { kN32_SkColorType, |
| 616 kRGB_565_SkColorType, | 616 kRGB_565_SkColorType, |
| 617 kAlpha_8_SkColorType, | 617 kAlpha_8_SkColorType, |
| 618 kIndex_8_SkColorType, | 618 kIndex_8_SkColorType, |
| 619 kGray_8_SkColorType }; | 619 kGray_8_SkColorType }; |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1283 | 1283 |
| 1284 return 0; | 1284 return 0; |
| 1285 } | 1285 } |
| 1286 | 1286 |
| 1287 #if !defined SK_BUILD_FOR_IOS | 1287 #if !defined SK_BUILD_FOR_IOS |
| 1288 int main(int argc, char** argv) { | 1288 int main(int argc, char** argv) { |
| 1289 SkCommandLineFlags::Parse(argc, argv); | 1289 SkCommandLineFlags::Parse(argc, argv); |
| 1290 return nanobench_main(); | 1290 return nanobench_main(); |
| 1291 } | 1291 } |
| 1292 #endif | 1292 #endif |
| OLD | NEW |