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

Unified Diff: components/mus/gles2/command_buffer_local.cc

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: blimp 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: components/mus/gles2/command_buffer_local.cc
diff --git a/components/mus/gles2/command_buffer_local.cc b/components/mus/gles2/command_buffer_local.cc
index 23a8fd1e50fdae5a3e34160fa76ca384c2e2174e..20f0756ddf4eba0e607ca85e1b5c767d7faf24cb 100644
--- a/components/mus/gles2/command_buffer_local.cc
+++ b/components/mus/gles2/command_buffer_local.cc
@@ -216,6 +216,12 @@ void CommandBufferLocal::DestroyTransferBuffer(int32_t id) {
base::Unretained(this), id));
}
+void CommandBufferLocal::SetGpuControlClient(gpu::GpuControlClient*) {
+ // This implementation of GpuControl has no concept of losing the context
+ // (see IsGpuChannelLost), and no error messages, so we don't bother storing
+ // the client.
+}
+
gpu::Capabilities CommandBufferLocal::GetCapabilities() {
DCHECK(CalledOnValidThread());
return capabilities_;

Powered by Google App Engine
This is Rietveld 408576698