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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 failures += process_input(FLAGS_readPath[i], &outputDir, *renderer.get()
); | 433 failures += process_input(FLAGS_readPath[i], &outputDir, *renderer.get()
); |
434 } | 434 } |
435 if (failures != 0) { | 435 if (failures != 0) { |
436 SkDebugf("Failed to render %i pictures.\n", failures); | 436 SkDebugf("Failed to render %i pictures.\n", failures); |
437 return 1; | 437 return 1; |
438 } | 438 } |
439 #if SK_SUPPORT_GPU | 439 #if SK_SUPPORT_GPU |
440 #if GR_CACHE_STATS | 440 #if GR_CACHE_STATS |
441 if (renderer->isUsingGpuDevice()) { | 441 if (renderer->isUsingGpuDevice()) { |
442 GrContext* ctx = renderer->getGrContext(); | 442 GrContext* ctx = renderer->getGrContext(); |
443 | |
444 ctx->printCacheStats(); | 443 ctx->printCacheStats(); |
| 444 #ifdef SK_DEVELOPER |
| 445 ctx->dumpFontCache(); |
| 446 #endif |
445 } | 447 } |
446 #endif | 448 #endif |
447 #endif | 449 #endif |
448 return 0; | 450 return 0; |
449 } | 451 } |
450 | 452 |
451 #if !defined SK_BUILD_FOR_IOS | 453 #if !defined SK_BUILD_FOR_IOS |
452 int main(int argc, char * const argv[]) { | 454 int main(int argc, char * const argv[]) { |
453 return tool_main(argc, (char**) argv); | 455 return tool_main(argc, (char**) argv); |
454 } | 456 } |
455 #endif | 457 #endif |
OLD | NEW |