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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 2378583003: Ping watchdog thread during GpuChannel destruction (Closed)
Patch Set: feedback 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/service/in_process_command_buffer.h
diff --git a/gpu/command_buffer/service/in_process_command_buffer.h b/gpu/command_buffer/service/in_process_command_buffer.h
index ad98b6eb7f479b722e5ba0cfb90b0a386fcc2c3e..c0332add50407c22f6d125b6ef74644cdcf18630 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.h
+++ b/gpu/command_buffer/service/in_process_command_buffer.h
@@ -26,6 +26,7 @@
#include "gpu/command_buffer/client/gpu_control.h"
#include "gpu/command_buffer/common/command_buffer.h"
#include "gpu/command_buffer/service/gpu_preferences.h"
+#include "gpu/command_buffer/service/progress_reporter_stub.h"
#include "gpu/config/gpu_driver_bug_workarounds.h"
#include "gpu/gpu_export.h"
#include "ui/gfx/gpu_memory_buffer.h"
@@ -244,6 +245,9 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
// Used to throttle PerformDelayedWorkOnGpuThread.
bool delayed_work_pending_;
ImageFactory* image_factory_;
+ // There is no watchdog thread in in-process mode, so use the stub
+ // ProgressReporter.
+ gles2::ProgressReporterStub progress_reporter_;
// Members accessed on the client thread:
GpuControlClient* gpu_control_client_;

Powered by Google App Engine
This is Rietveld 408576698