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

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

Issue 2378583003: Ping watchdog thread during GpuChannel destruction (Closed)
Patch Set: Fix lifetime and use nullptr 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/progress_reporter.h
diff --git a/gpu/command_buffer/service/progress_reporter.h b/gpu/command_buffer/service/progress_reporter.h
new file mode 100644
index 0000000000000000000000000000000000000000..14d57b6565aeffac8ba3ca0c3c7d7b3d972889ba
--- /dev/null
+++ b/gpu/command_buffer/service/progress_reporter.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef GPU_COMMAND_BUFFER_SERVICE_PROGRESS_REPORTER_H_
+#define GPU_COMMAND_BUFFER_SERVICE_PROGRESS_REPORTER_H_
+
+#include "gpu/gpu_export.h"
+
+namespace gpu {
+namespace gles2 {
+
+// ProgressReporter is used by ContextGroup to report when it is making forward
+// progress in execution, delaying activation of the watchdog timeout.
+class GPU_EXPORT ProgressReporter {
+ public:
+ virtual ~ProgressReporter() = default;
+
+ virtual void ReportProgress() = 0;
+};
+
+} // namespace gles2
+} // namespace gpu
+
+#endif // GPU_COMMAND_BUFFER_SERVICE_PROGRESS_REPORTER_H_

Powered by Google App Engine
This is Rietveld 408576698