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

Side by Side Diff: tools/PictureBenchmark.cpp

Issue 202983003: add --writeChecksumBasedFilenames flag to render_pictures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: pass SkString pointers to init Created 6 years, 9 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/CopyTilesRenderer.cpp ('k') | tools/PictureRenderer.h » ('j') | 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 "SkBenchLogger.h" 8 #include "SkBenchLogger.h"
9 #include "BenchTimer.h" 9 #include "BenchTimer.h"
10 #include "PictureBenchmark.h" 10 #include "PictureBenchmark.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 SkASSERT(pict); 66 SkASSERT(pict);
67 if (NULL == pict) { 67 if (NULL == pict) {
68 return; 68 return;
69 } 69 }
70 70
71 SkASSERT(fRenderer != NULL); 71 SkASSERT(fRenderer != NULL);
72 if (NULL == fRenderer) { 72 if (NULL == fRenderer) {
73 return; 73 return;
74 } 74 }
75 75
76 fRenderer->init(pict); 76 fRenderer->init(pict, NULL, NULL, false);
77 77
78 // We throw this away to remove first time effects (such as paging in this p rogram) 78 // We throw this away to remove first time effects (such as paging in this p rogram)
79 fRenderer->setup(); 79 fRenderer->setup();
80 fRenderer->render(NULL); 80 fRenderer->render(NULL);
81 fRenderer->resetState(true); // flush, swapBuffers and Finish 81 fRenderer->resetState(true); // flush, swapBuffers and Finish
82 82
83 if (fPurgeDecodedTex) { 83 if (fPurgeDecodedTex) {
84 fRenderer->purgeTextures(); 84 fRenderer->purgeTextures();
85 } 85 }
86 86
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 numInnerLoops); 249 numInnerLoops);
250 result.append("\n"); 250 result.append("\n");
251 this->logProgress(result.c_str()); 251 this->logProgress(result.c_str());
252 #endif 252 #endif
253 } 253 }
254 254
255 fRenderer->end(); 255 fRenderer->end();
256 } 256 }
257 257
258 } 258 }
OLDNEW
« no previous file with comments | « tools/CopyTilesRenderer.cpp ('k') | tools/PictureRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698