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

Side by Side Diff: bench/benchmain.cpp

Issue 47513017: More Windows 64b compilation warning fixes (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Remove common_variables.gypi from CL (ooops) Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | include/core/SkUtils.h » ('j') | include/core/SkUtils.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #if SK_SUPPORT_GPU 9 #if SK_SUPPORT_GPU
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 if (-1 != FLAGS_gpuCacheCount) { 444 if (-1 != FLAGS_gpuCacheCount) {
445 count = FLAGS_gpuCacheCount; 445 count = FLAGS_gpuCacheCount;
446 } 446 }
447 context->setTextureCacheLimits(count, bytes); 447 context->setTextureCacheLimits(count, bytes);
448 #endif 448 #endif
449 } 449 }
450 450
451 // Find the longest name of the benches we're going to run to make the outpu t pretty. 451 // Find the longest name of the benches we're going to run to make the outpu t pretty.
452 Iter names; 452 Iter names;
453 SkBenchmark* bench; 453 SkBenchmark* bench;
454 int longestName = 0; 454 size_t longestName = 0;
455 while ((bench = names.next()) != NULL) { 455 while ((bench = names.next()) != NULL) {
456 SkAutoTUnref<SkBenchmark> benchUnref(bench); 456 SkAutoTUnref<SkBenchmark> benchUnref(bench);
457 if (SkCommandLineFlags::ShouldSkip(FLAGS_match, bench->getName())) { 457 if (SkCommandLineFlags::ShouldSkip(FLAGS_match, bench->getName())) {
458 continue; 458 continue;
459 } 459 }
460 const int length = strlen(bench->getName()); 460 const size_t length = strlen(bench->getName());
461 longestName = length > longestName ? length : longestName; 461 longestName = length > longestName ? length : longestName;
462 } 462 }
463 463
464 // Run each bench in each configuration it supports and we asked for. 464 // Run each bench in each configuration it supports and we asked for.
465 Iter iter; 465 Iter iter;
466 while ((bench = iter.next()) != NULL) { 466 while ((bench = iter.next()) != NULL) {
467 SkAutoTUnref<SkBenchmark> benchUnref(bench); 467 SkAutoTUnref<SkBenchmark> benchUnref(bench);
468 if (SkCommandLineFlags::ShouldSkip(FLAGS_match, bench->getName())) { 468 if (SkCommandLineFlags::ShouldSkip(FLAGS_match, bench->getName())) {
469 continue; 469 continue;
470 } 470 }
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 gContextFactory.destroyContexts(); 705 gContextFactory.destroyContexts();
706 #endif 706 #endif
707 return 0; 707 return 0;
708 } 708 }
709 709
710 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 710 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
711 int main(int argc, char * const argv[]) { 711 int main(int argc, char * const argv[]) {
712 return tool_main(argc, (char**) argv); 712 return tool_main(argc, (char**) argv);
713 } 713 }
714 #endif 714 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkUtils.h » ('j') | include/core/SkUtils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698