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..e8900853a43eb861cd90b8956c0e57be16236227 |
--- /dev/null |
+++ b/gpu/command_buffer/service/progress_reporter.h |
@@ -0,0 +1,29 @@ |
+// 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 "base/macros.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 ProgressReporter { |
+ public: |
+ ProgressReporter() = default; |
danakj
2016/10/05 01:53:48
no constructor needed
ericrk
2016/10/05 18:07:31
ah, yeah, removed.
|
+ virtual ~ProgressReporter() = default; |
+ |
+ virtual void ReportProgress() = 0; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(ProgressReporter); |
danakj
2016/10/05 01:53:48
you dont need this for interfaces IMO
ericrk
2016/10/05 18:07:31
Done.
|
+}; |
+ |
+} // namespace gles2 |
+} // namespace gpu |
+ |
+#endif // GPU_COMMAND_BUFFER_SERVICE_PROGRESS_REPORTER_H_ |