OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 "BenchLogger.h" | 8 #include "BenchLogger.h" |
9 #include "Timer.h" | 9 #include "Timer.h" |
10 #include "CopyTilesRenderer.h" | 10 #include "CopyTilesRenderer.h" |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 ++failures; | 394 ++failures; |
395 } | 395 } |
396 } else { | 396 } else { |
397 SkString warning; | 397 SkString warning; |
398 warning.printf("Warning: skipping %s\n", input); | 398 warning.printf("Warning: skipping %s\n", input); |
399 gLogger.logError(warning); | 399 gLogger.logError(warning); |
400 } | 400 } |
401 return failures; | 401 return failures; |
402 } | 402 } |
403 | 403 |
| 404 extern int gBindFrameBufferCount; |
| 405 |
404 int tool_main(int argc, char** argv); | 406 int tool_main(int argc, char** argv); |
405 int tool_main(int argc, char** argv) { | 407 int tool_main(int argc, char** argv) { |
406 SetupCrashHandler(); | 408 SetupCrashHandler(); |
407 SkString usage; | 409 SkString usage; |
408 usage.printf("Time drawing .skp files.\n" | 410 usage.printf("Time drawing .skp files.\n" |
409 "\tPossible arguments for --filter: [%s]\n\t\t[%s]", | 411 "\tPossible arguments for --filter: [%s]\n\t\t[%s]", |
410 filterTypesUsage().c_str(), filterFlagsUsage().c_str()); | 412 filterTypesUsage().c_str(), filterFlagsUsage().c_str()); |
411 SkCommandLineFlags::SetUsage(usage.c_str()); | 413 SkCommandLineFlags::SetUsage(usage.c_str()); |
412 SkCommandLineFlags::Parse(argc, argv); | 414 SkCommandLineFlags::Parse(argc, argv); |
413 | 415 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 gLogger.logError(err); | 468 gLogger.logError(err); |
467 return 1; | 469 return 1; |
468 } | 470 } |
469 #if SK_LAZY_CACHE_STATS | 471 #if SK_LAZY_CACHE_STATS |
470 if (FLAGS_trackDeferredCaching) { | 472 if (FLAGS_trackDeferredCaching) { |
471 SkDebugf("Total cache hit rate: %f\n", | 473 SkDebugf("Total cache hit rate: %f\n", |
472 (double) gTotalCacheHits / (gTotalCacheHits + gTotalCacheMisses
)); | 474 (double) gTotalCacheHits / (gTotalCacheHits + gTotalCacheMisses
)); |
473 } | 475 } |
474 #endif | 476 #endif |
475 gWriter.end(); | 477 gWriter.end(); |
| 478 SkDebugf("\n************** BindFramebuffers: %d**********************\n", gB
indFrameBufferCount); |
476 return 0; | 479 return 0; |
477 } | 480 } |
478 | 481 |
479 #if !defined SK_BUILD_FOR_IOS | 482 #if !defined SK_BUILD_FOR_IOS |
480 int main(int argc, char * const argv[]) { | 483 int main(int argc, char * const argv[]) { |
481 return tool_main(argc, (char**) argv); | 484 return tool_main(argc, (char**) argv); |
482 } | 485 } |
483 #endif | 486 #endif |
OLD | NEW |