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 "LazyDecodeBitmap.h" | 8 #include "LazyDecodeBitmap.h" |
9 #include "CopyTilesRenderer.h" | 9 #include "CopyTilesRenderer.h" |
10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 jsonSummaryPtr); | 471 jsonSummaryPtr); |
472 } | 472 } |
473 if (failures != 0) { | 473 if (failures != 0) { |
474 SkDebugf("Failed to render %i pictures.\n", failures); | 474 SkDebugf("Failed to render %i pictures.\n", failures); |
475 return 1; | 475 return 1; |
476 } | 476 } |
477 #if GR_CACHE_STATS && SK_SUPPORT_GPU | 477 #if GR_CACHE_STATS && SK_SUPPORT_GPU |
478 if (renderer->isUsingGpuDevice()) { | 478 if (renderer->isUsingGpuDevice()) { |
479 GrContext* ctx = renderer->getGrContext(); | 479 GrContext* ctx = renderer->getGrContext(); |
480 ctx->printCacheStats(); | 480 ctx->printCacheStats(); |
481 #ifdef SK_DEVELOPER | |
482 ctx->dumpFontCache(); | |
483 #endif | |
484 } | 481 } |
485 #endif | 482 #endif |
486 | 483 |
487 #if GR_GPU_STATS && SK_SUPPORT_GPU | 484 #if GR_GPU_STATS && SK_SUPPORT_GPU |
488 if (FLAGS_gpuStats && renderer->isUsingGpuDevice()) { | 485 if (FLAGS_gpuStats && renderer->isUsingGpuDevice()) { |
489 renderer->getGrContext()->printGpuStats(); | 486 renderer->getGrContext()->printGpuStats(); |
490 } | 487 } |
491 #endif | 488 #endif |
492 | 489 |
493 if (FLAGS_writeJsonSummaryPath.count() == 1) { | 490 if (FLAGS_writeJsonSummaryPath.count() == 1) { |
(...skipping 10 matching lines...) Expand all Loading... |
504 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]); | 501 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]); |
505 } | 502 } |
506 return 0; | 503 return 0; |
507 } | 504 } |
508 | 505 |
509 #if !defined SK_BUILD_FOR_IOS | 506 #if !defined SK_BUILD_FOR_IOS |
510 int main(int argc, char * const argv[]) { | 507 int main(int argc, char * const argv[]) { |
511 return tool_main(argc, (char**) argv); | 508 return tool_main(argc, (char**) argv); |
512 } | 509 } |
513 #endif | 510 #endif |
OLD | NEW |