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

Side by Side Diff: bench/nanobench.cpp

Issue 431983006: Skip all .skps in 565. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 "Benchmark.h" 10 #include "Benchmark.h"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 if (!targets.isEmpty()) { 525 if (!targets.isEmpty()) {
526 log.bench(bench->getName(), bench->getSize().fX, bench->getSize().fY ); 526 log.bench(bench->getName(), bench->getSize().fX, bench->getSize().fY );
527 bench->preDraw(); 527 bench->preDraw();
528 } 528 }
529 for (int j = 0; j < targets.count(); j++) { 529 for (int j = 0; j < targets.count(); j++) {
530 SkCanvas* canvas = targets[j]->surface.get() ? targets[j]->surface-> getCanvas() : NULL; 530 SkCanvas* canvas = targets[j]->surface.get() ? targets[j]->surface-> getCanvas() : NULL;
531 const char* config = targets[j]->config.name; 531 const char* config = targets[j]->config.name;
532 532
533 #if SK_DEBUG 533 #if SK_DEBUG
534 // skia:2797 Some SKPs SkASSERT in debug mode. Skip them for now. 534 // skia:2797 Some SKPs SkASSERT in debug mode. Skip them for now.
535 if (0 == strcmp("565", config) 535 if (0 == strcmp("565", config) && SkStrContains(bench->getName(), ". skp")) {
536 && ( SkStrStartsWith(bench->getName(), "desk_carsvg.skp") 536 SkDebugf("Skipping 565 %s. See skia:2797\n", bench->getName());
537 || SkStrStartsWith(bench->getName(), "desk_forecastio.skp ")
538 || SkStrStartsWith(bench->getName(), "tabl_cnet.skp")
539 || SkStrStartsWith(bench->getName(), "tabl_googlecalendar .skp"))) {
540 SkDebugf("Skipping 565 %s. It'd assert.\n", bench->getName());
541 continue; 537 continue;
542 } 538 }
543 #endif 539 #endif
544 540
545 const int loops = 541 const int loops =
546 #if SK_SUPPORT_GPU 542 #if SK_SUPPORT_GPU
547 Benchmark::kGPU_Backend == targets[j]->config.backend 543 Benchmark::kGPU_Backend == targets[j]->config.backend
548 ? gpu_bench(targets[j]->gl, bench.get(), canvas, samples.get()) 544 ? gpu_bench(targets[j]->gl, bench.get(), canvas, samples.get())
549 : 545 :
550 #endif 546 #endif
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 610
615 return 0; 611 return 0;
616 } 612 }
617 613
618 #if !defined SK_BUILD_FOR_IOS 614 #if !defined SK_BUILD_FOR_IOS
619 int main(int argc, char** argv) { 615 int main(int argc, char** argv) {
620 SkCommandLineFlags::Parse(argc, argv); 616 SkCommandLineFlags::Parse(argc, argv);
621 return nanobench_main(); 617 return nanobench_main();
622 } 618 }
623 #endif 619 #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