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

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

Issue 1882503002: Remove setErrorMessageCallback from WebGraphicsContext3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@errorcallback
Patch Set: weberrors: owned 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/context_support.h
diff --git a/gpu/command_buffer/client/context_support.h b/gpu/command_buffer/client/context_support.h
index 0e7c75c7d8c2b938e42eca8e31aee8b6bdbcee72..c72cf37f16f20ab805672197f7e1ad2200a06036 100644
--- a/gpu/command_buffer/client/context_support.h
+++ b/gpu/command_buffer/client/context_support.h
@@ -52,6 +52,10 @@ class ContextSupport {
// this context's resources belong to.
virtual uint64_t ShareGroupTracingGUID() const = 0;
+ // Sets a callback to be run when an error occurs.
+ virtual void SetErrorMessageCallback(
+ const base::Callback<void(const char*, int32_t)>& callback) = 0;
+
protected:
ContextSupport() {}
virtual ~ContextSupport() {}
« no previous file with comments | « gpu/blink/webgraphicscontext3d_in_process_command_buffer_impl.cc ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698