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

Side by Side Diff: bench/nanobench.cpp

Issue 422903002: Test abandoning GL context in dm/nanobench. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix build 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 | dm/DMGpuSupport.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 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
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
OLDNEW
« no previous file with comments | « no previous file | dm/DMGpuSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698