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

Unified Diff: gpu/command_buffer/client/gpu_control_client.h

Issue 1864723003: Make lost context and error message callbacks on GpuControl go to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: errorcallback: .get Created 4 years, 8 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/client/gpu_control_client.h
diff --git a/gpu/command_buffer/client/gpu_control_client.h b/gpu/command_buffer/client/gpu_control_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..aaee9b197ee9a47e5df0c314192963a621b07fb9
--- /dev/null
+++ b/gpu/command_buffer/client/gpu_control_client.h
@@ -0,0 +1,20 @@
+// Copyright 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_CLIENT_GPU_CONTROL_CLIENT_H_
+#define GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_CLIENT_H_
+
+#include <cstdint>
+
+namespace gpu {
+
+class GpuControlClient {
+ public:
+ virtual void OnGpuControlLostContext() = 0;
+ virtual void OnGpuControlErrorMessage(const char* message, int32_t id) = 0;
+};
+
+} // namespace gpu
+
+#endif // GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698