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

Side by Side Diff: bench/nanobench.cpp

Issue 1933753002: Add ColorCodecSrc for testing/comparison on color corrected decodes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to comments Created 4 years, 7 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 | dm/DM.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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | dm/DM.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698