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

Unified Diff: dm/DMTask.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 | « dm/DMGpuSupport.h ('k') | include/gpu/GrContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMTask.cpp
diff --git a/dm/DMTask.cpp b/dm/DMTask.cpp
index d0a82b63d6d0bf29a94366a931c24700e3ffbb38..05eda4ea20386b62edbda7c784583d95f2d2bdb5 100644
--- a/dm/DMTask.cpp
+++ b/dm/DMTask.cpp
@@ -68,7 +68,10 @@ void GpuTask::run(GrContextFactory& factory) {
this->start();
if (!FLAGS_dryRun) this->draw(&factory);
this->finish();
- if (FLAGS_resetGpuContext) {
+ if (FLAGS_abandonGpuContext) {
+ factory.abandonContexts();
+ }
+ if (FLAGS_resetGpuContext || FLAGS_abandonGpuContext) {
factory.destroyContexts();
}
}
« no previous file with comments | « dm/DMGpuSupport.h ('k') | include/gpu/GrContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698