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

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

Issue 2378583003: Ping watchdog thread during GpuChannel destruction (Closed)
Patch Set: revert to passing via destructor Created 4 years, 2 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
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 a544edc54cb9fc9c4b316700b14c553d736f2a4a..5ee7795f95e29a8f753ad2c71b2bbc7da616876a 100644
--- a/gpu/command_buffer/tests/fuzzer_main.cc
+++ b/gpu/command_buffer/tests/fuzzer_main.cc
@@ -23,6 +23,7 @@
#include "gpu/command_buffer/service/gles2_cmd_decoder.h"
#include "gpu/command_buffer/service/logger.h"
#include "gpu/command_buffer/service/mailbox_manager_impl.h"
+#include "gpu/command_buffer/service/progress_reporter_stub.h"
#include "gpu/command_buffer/service/sync_point_manager.h"
#include "gpu/command_buffer/service/transfer_buffer_manager.h"
#include "ui/gfx/geometry/size.h"
@@ -117,7 +118,7 @@ class CommandBufferSetup {
scoped_refptr<gles2::ContextGroup> context_group = new gles2::ContextGroup(
gpu_preferences_, mailbox_manager_.get(), nullptr, translator_cache_,
completeness_cache_, feature_info, true /* bind_generates_resource */,
- nullptr /* ImageFactory */);
+ nullptr /* ImageFactory */, &progress_reporter_);
command_buffer_.reset(
new CommandBufferService(context_group->transfer_buffer_manager()));
command_buffer_->SetPutOffsetChangeCallback(
@@ -286,6 +287,8 @@ class CommandBufferSetup {
scoped_refptr<Buffer> buffer_;
int32_t buffer_id_ = 0;
+
+ gles2::ProgressReporterStub progress_reporter_;
};
} // anonymous namespace

Powered by Google App Engine
This is Rietveld 408576698