| 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 ctx->dumpFontCache(); |
| 445 } | 445 } |
| 446 #endif | 446 #endif |
| 447 #endif | 447 #endif |
| 448 return 0; | 448 return 0; |
| 449 } | 449 } |
| 450 | 450 |
| 451 #if !defined SK_BUILD_FOR_IOS | 451 #if !defined SK_BUILD_FOR_IOS |
| 452 int main(int argc, char * const argv[]) { | 452 int main(int argc, char * const argv[]) { |
| 453 return tool_main(argc, (char**) argv); | 453 return tool_main(argc, (char**) argv); |
| 454 } | 454 } |
| 455 #endif | 455 #endif |
| OLD | NEW |