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

Unified Diff: components/mus/gles2/command_buffer_local.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: nitmissed 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
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | components/mus/gles2/command_buffer_local.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_local.h
diff --git a/components/mus/gles2/command_buffer_local.h b/components/mus/gles2/command_buffer_local.h
index 6c5cef51b023191d6b240a73d2b9a0292f4634d2..48f286258c8b4bfc9328f6a3b08cc1443cabec0c 100644
--- a/components/mus/gles2/command_buffer_local.h
+++ b/components/mus/gles2/command_buffer_local.h
@@ -35,6 +35,7 @@ class GLSurface;
}
namespace gpu {
+class GpuControlClient;
class SyncPointClient;
}
@@ -74,6 +75,7 @@ class CommandBufferLocal : public gpu::CommandBuffer,
void DestroyTransferBuffer(int32_t id) override;
// gpu::GpuControl implementation:
+ void SetGpuControlClient(gpu::GpuControlClient*) override;
gpu::Capabilities GetCapabilities() override;
int32_t CreateImage(ClientBuffer buffer,
size_t width,
@@ -144,6 +146,7 @@ class CommandBufferLocal : public gpu::CommandBuffer,
scoped_refptr<base::SingleThreadTaskRunner> client_thread_task_runner_;
// Members accessed on the client thread:
+ gpu::GpuControlClient* gpu_control_client_;
gpu::CommandBuffer::State last_state_;
mojo::ScopedSharedBufferHandle shared_state_handle_;
gpu::CommandBufferSharedState* shared_state_;
@@ -153,6 +156,7 @@ class CommandBufferLocal : public gpu::CommandBuffer,
int32_t next_image_id_;
uint64_t next_fence_sync_release_;
uint64_t flushed_fence_sync_release_;
+ bool lost_context_;
// This sync point client is only for out of order Wait on client thread.
scoped_ptr<gpu::SyncPointClient> sync_point_client_waiter_;
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | components/mus/gles2/command_buffer_local.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698