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

Side by Side Diff: bench/nanobench.cpp

Issue 481513004: Define NDEBUG instead of SK_DEBUG/SK_RELEASE. (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 | experimental/Intersection/CubicIntersection_Test.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 "Benchmark.h" 10 #include "Benchmark.h"
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 create_targets(&targets, bench.get(), configs); 607 create_targets(&targets, bench.get(), configs);
608 608
609 if (!targets.isEmpty()) { 609 if (!targets.isEmpty()) {
610 log.bench(bench->getName(), bench->getSize().fX, bench->getSize().fY ); 610 log.bench(bench->getName(), bench->getSize().fX, bench->getSize().fY );
611 bench->preDraw(); 611 bench->preDraw();
612 } 612 }
613 for (int j = 0; j < targets.count(); j++) { 613 for (int j = 0; j < targets.count(); j++) {
614 SkCanvas* canvas = targets[j]->surface.get() ? targets[j]->surface-> getCanvas() : NULL; 614 SkCanvas* canvas = targets[j]->surface.get() ? targets[j]->surface-> getCanvas() : NULL;
615 const char* config = targets[j]->config.name; 615 const char* config = targets[j]->config.name;
616 616
617 #if SK_DEBUG 617 #ifdef SK_DEBUG
618 // skia:2797 Some SKPs SkASSERT in debug mode. Skip them for now. 618 // skia:2797 Some SKPs SkASSERT in debug mode. Skip them for now.
619 if (0 == strcmp("565", config) && SkStrContains(bench->getName(), ". skp")) { 619 if (0 == strcmp("565", config) && SkStrContains(bench->getName(), ". skp")) {
620 SkDebugf("Skipping 565 %s. See skia:2797\n", bench->getName()); 620 SkDebugf("Skipping 565 %s. See skia:2797\n", bench->getName());
621 continue; 621 continue;
622 } 622 }
623 #endif 623 #endif
624 624
625 const int loops = 625 const int loops =
626 #if SK_SUPPORT_GPU 626 #if SK_SUPPORT_GPU
627 Benchmark::kGPU_Backend == targets[j]->config.backend 627 Benchmark::kGPU_Backend == targets[j]->config.backend
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 700
701 return 0; 701 return 0;
702 } 702 }
703 703
704 #if !defined SK_BUILD_FOR_IOS 704 #if !defined SK_BUILD_FOR_IOS
705 int main(int argc, char** argv) { 705 int main(int argc, char** argv) {
706 SkCommandLineFlags::Parse(argc, argv); 706 SkCommandLineFlags::Parse(argc, argv);
707 return nanobench_main(); 707 return nanobench_main();
708 } 708 }
709 #endif 709 #endif
OLDNEW
« no previous file with comments | « no previous file | experimental/Intersection/CubicIntersection_Test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698