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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dm/DMGpuSupport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/nanobench.cpp
diff --git a/bench/nanobench.cpp b/bench/nanobench.cpp
index 3cc03a805da678be64746f273b32d88c5d5d1b88..07ff0dd2b029677369f36286b8f9d54990af8864 100644
--- a/bench/nanobench.cpp
+++ b/bench/nanobench.cpp
@@ -477,7 +477,10 @@ int nanobench_main() {
targets.deleteAll();
#if SK_SUPPORT_GPU
- if (FLAGS_resetGpuContext) {
+ if (FLAGS_abandonGpuContext) {
+ gGrFactory.abandonContexts();
+ }
+ if (FLAGS_resetGpuContext || FLAGS_abandonGpuContext) {
gGrFactory.destroyContexts();
}
#endif
« 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