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

Unified Diff: gpu/command_buffer/tests/fuzzer_main.cc

Issue 2767093003: gpu_fuzzer: Destroy the command decoder before the context. (Closed)
Patch Set: Created 3 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/fuzzer_main.cc
diff --git a/gpu/command_buffer/tests/fuzzer_main.cc b/gpu/command_buffer/tests/fuzzer_main.cc
index 87111b4fe207689e9b43fbbab7bd5c28ca4f833a..557b228cfaa6916c3c95a56bb844c2049ee95a03 100644
--- a/gpu/command_buffer/tests/fuzzer_main.cc
+++ b/gpu/command_buffer/tests/fuzzer_main.cc
@@ -190,12 +190,12 @@ class CommandBufferSetup {
}
void ResetDecoder() {
+ decoder_->Destroy(true);
+ decoder_.reset();
if (recreate_context_) {
context_->ReleaseCurrent(nullptr);
context_ = nullptr;
}
- decoder_->Destroy(true);
- decoder_.reset();
command_buffer_.reset();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698