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

Side by Side Diff: tools/render_pictures_main.cpp

Issue 1104343003: remove old text contexts and fontcache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak Created 5 years, 7 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
« no previous file with comments | « src/gpu/SkGpuDevice.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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698