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

Side by Side Diff: tools/render_pictures_main.cpp

Issue 894013002: patch from issue 886233004 at patchset 40001 (http://crrev.com/886233004#ps40001) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 10 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 | « tools/bench_pictures_main.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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 GrContext* ctx = renderer->getGrContext(); 479 GrContext* ctx = renderer->getGrContext();
480 ctx->printCacheStats(); 480 ctx->printCacheStats();
481 #ifdef SK_DEVELOPER 481 #ifdef SK_DEVELOPER
482 ctx->dumpFontCache(); 482 ctx->dumpFontCache();
483 #endif 483 #endif
484 } 484 }
485 #endif 485 #endif
486 486
487 #if GR_GPU_STATS && SK_SUPPORT_GPU 487 #if GR_GPU_STATS && SK_SUPPORT_GPU
488 if (FLAGS_gpuStats && renderer->isUsingGpuDevice()) { 488 if (FLAGS_gpuStats && renderer->isUsingGpuDevice()) {
489 GrContext* ctx = renderer->getGrContext(); 489 renderer->getGrContext()->printGpuStats();
490 SkDebugf("RenderTarget Binds: %d\n", ctx->gpuStats()->renderTargetBinds( ));
491 SkDebugf("Shader Compilations: %d\n", ctx->gpuStats()->shaderCompilation s());
492 } 490 }
493 #endif 491 #endif
494 492
495 if (FLAGS_writeJsonSummaryPath.count() == 1) { 493 if (FLAGS_writeJsonSummaryPath.count() == 1) {
496 // If there were any descriptions on the command line, insert them now. 494 // If there were any descriptions on the command line, insert them now.
497 for (int i=0; i<FLAGS_descriptions.count(); i++) { 495 for (int i=0; i<FLAGS_descriptions.count(); i++) {
498 SkTArray<SkString> tokens; 496 SkTArray<SkString> tokens;
499 SkStrSplit(FLAGS_descriptions[i], "=", &tokens); 497 SkStrSplit(FLAGS_descriptions[i], "=", &tokens);
500 SkASSERT(tokens.count() == 2); 498 SkASSERT(tokens.count() == 2);
501 jsonSummary.addDescription(tokens[0].c_str(), tokens[1].c_str()); 499 jsonSummary.addDescription(tokens[0].c_str(), tokens[1].c_str());
502 } 500 }
503 if (FLAGS_imageBaseGSUrl.count() == 1) { 501 if (FLAGS_imageBaseGSUrl.count() == 1) {
504 jsonSummary.setImageBaseGSUrl(FLAGS_imageBaseGSUrl[0]); 502 jsonSummary.setImageBaseGSUrl(FLAGS_imageBaseGSUrl[0]);
505 } 503 }
506 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]); 504 jsonSummary.writeToFile(FLAGS_writeJsonSummaryPath[0]);
507 } 505 }
508 return 0; 506 return 0;
509 } 507 }
510 508
511 #if !defined SK_BUILD_FOR_IOS 509 #if !defined SK_BUILD_FOR_IOS
512 int main(int argc, char * const argv[]) { 510 int main(int argc, char * const argv[]) {
513 return tool_main(argc, (char**) argv); 511 return tool_main(argc, (char**) argv);
514 } 512 }
515 #endif 513 #endif
OLDNEW
« no previous file with comments | « tools/bench_pictures_main.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698