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

Side by Side Diff: tools/render_pictures_main.cpp

Issue 25736002: Add support to dump font cache texture for debug purposes (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Add stencil flag Created 7 years, 2 months 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 | « src/gpu/GrTextStrike.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrTextStrike.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698