| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |