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

Side by Side Diff: tools/PictureBenchmark.cpp

Issue 283123002: render_pictures: add --mismatchPath flag (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix SkDebuggerGUI Created 6 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 | « 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 SkASSERT(pict); 67 SkASSERT(pict);
68 if (NULL == pict) { 68 if (NULL == pict) {
69 return; 69 return;
70 } 70 }
71 71
72 SkASSERT(fRenderer != NULL); 72 SkASSERT(fRenderer != NULL);
73 if (NULL == fRenderer) { 73 if (NULL == fRenderer) {
74 return; 74 return;
75 } 75 }
76 76
77 fRenderer->init(pict, NULL, NULL, false); 77 fRenderer->init(pict, NULL, NULL, NULL, false);
78 78
79 // We throw this away to remove first time effects (such as paging in this p rogram) 79 // We throw this away to remove first time effects (such as paging in this p rogram)
80 fRenderer->setup(); 80 fRenderer->setup();
81 81
82 if (fPreprocess) { 82 if (fPreprocess) {
83 if (NULL != fRenderer->getCanvas()) { 83 if (NULL != fRenderer->getCanvas()) {
84 fRenderer->getCanvas()->EXPERIMENTAL_optimize(pict); 84 fRenderer->getCanvas()->EXPERIMENTAL_optimize(pict);
85 } 85 }
86 } 86 }
87 87
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 numInnerLoops); 269 numInnerLoops);
270 result.append("\n"); 270 result.append("\n");
271 this->logProgress(result.c_str()); 271 this->logProgress(result.c_str());
272 #endif 272 #endif
273 } 273 }
274 274
275 fRenderer->end(); 275 fRenderer->end();
276 } 276 }
277 277
278 } 278 }
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