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

Side by Side Diff: tools/PictureBenchmark.cpp

Issue 428883008: Optimize correct picture in bench_pictures when using --bbh (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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 | « no previous file | 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 "Timer.h" 8 #include "Timer.h"
9 #include "PictureBenchmark.h" 9 #include "PictureBenchmark.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 return; 67 return;
68 } 68 }
69 69
70 fRenderer->init(pict, NULL, NULL, NULL, false); 70 fRenderer->init(pict, NULL, NULL, NULL, false);
71 71
72 // We throw this away to remove first time effects (such as paging in this p rogram) 72 // We throw this away to remove first time effects (such as paging in this p rogram)
73 fRenderer->setup(); 73 fRenderer->setup();
74 74
75 if (fPreprocess) { 75 if (fPreprocess) {
76 if (NULL != fRenderer->getCanvas()) { 76 if (NULL != fRenderer->getCanvas()) {
77 fRenderer->getCanvas()->EXPERIMENTAL_optimize(pict); 77 fRenderer->getCanvas()->EXPERIMENTAL_optimize(fRenderer->getPicture( ));
78 } 78 }
79 } 79 }
80 80
81 fRenderer->render(NULL); 81 fRenderer->render(NULL);
82 fRenderer->resetState(true); // flush, swapBuffers and Finish 82 fRenderer->resetState(true); // flush, swapBuffers and Finish
83 83
84 if (fPurgeDecodedTex) { 84 if (fPurgeDecodedTex) {
85 fRenderer->purgeTextures(); 85 fRenderer->purgeTextures();
86 } 86 }
87 87
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 fTimerResult, 244 fTimerResult,
245 timerTypes, 245 timerTypes,
246 numInnerLoops); 246 numInnerLoops);
247 #endif 247 #endif
248 } 248 }
249 249
250 fRenderer->end(); 250 fRenderer->end();
251 } 251 }
252 252
253 } 253 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698