| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 <ctype.h> | 8 #include <ctype.h> |
| 9 | 9 |
| 10 #include "Benchmark.h" | 10 #include "Benchmark.h" |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 , stddev_percent | 470 , stddev_percent |
| 471 , stats.plot.c_str() | 471 , stats.plot.c_str() |
| 472 , config | 472 , config |
| 473 , bench->getName() | 473 , bench->getName() |
| 474 ); | 474 ); |
| 475 } | 475 } |
| 476 } | 476 } |
| 477 targets.deleteAll(); | 477 targets.deleteAll(); |
| 478 | 478 |
| 479 #if SK_SUPPORT_GPU | 479 #if SK_SUPPORT_GPU |
| 480 if (FLAGS_resetGpuContext) { | 480 if (FLAGS_abandonGpuContext) { |
| 481 gGrFactory.abandonContexts(); |
| 482 } |
| 483 if (FLAGS_resetGpuContext || FLAGS_abandonGpuContext) { |
| 481 gGrFactory.destroyContexts(); | 484 gGrFactory.destroyContexts(); |
| 482 } | 485 } |
| 483 #endif | 486 #endif |
| 484 } | 487 } |
| 485 | 488 |
| 486 return 0; | 489 return 0; |
| 487 } | 490 } |
| 488 | 491 |
| 489 #if !defined SK_BUILD_FOR_IOS | 492 #if !defined SK_BUILD_FOR_IOS |
| 490 int main(int argc, char** argv) { | 493 int main(int argc, char** argv) { |
| 491 SkCommandLineFlags::Parse(argc, argv); | 494 SkCommandLineFlags::Parse(argc, argv); |
| 492 return nanobench_main(); | 495 return nanobench_main(); |
| 493 } | 496 } |
| 494 #endif | 497 #endif |
| OLD | NEW |