OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |