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

Unified Diff: mojo/gles2/command_buffer_client_impl.h

Issue 868203003: De-Client CommandBuffer interface (Closed) Base URL: git@github.com:domokit/mojo.git@fix_sample_app
Patch Set: Created 5 years, 11 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 | « no previous file | mojo/gles2/command_buffer_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gles2/command_buffer_client_impl.h
diff --git a/mojo/gles2/command_buffer_client_impl.h b/mojo/gles2/command_buffer_client_impl.h
index b37da0a89baa8667922b13442b7e4e1c8b963118..dcedb52db5800ccdf863caa3f86e2ae9474fada1 100644
--- a/mojo/gles2/command_buffer_client_impl.h
+++ b/mojo/gles2/command_buffer_client_impl.h
@@ -28,7 +28,7 @@ class CommandBufferDelegate {
virtual void ContextLost();
};
-class CommandBufferClientImpl : public mojo::CommandBufferClient,
+class CommandBufferClientImpl : public mojo::CommandBufferLostContextObserver,
public mojo::ErrorHandler,
public gpu::CommandBuffer,
public gpu::GpuControl {
@@ -75,11 +75,10 @@ class CommandBufferClientImpl : public mojo::CommandBufferClient,
class SyncClientImpl;
class SyncPointClientImpl;
- // CommandBufferClient implementation:
- void DidDestroy() override;
- void LostContext(int32_t lost_reason) override;
+ // mojo::CommandBufferLostContextObserver implementation:
+ void DidLoseContext(int32_t lost_reason) override;
- // ErrorHandler implementation:
+ // mojo::ErrorHandler implementation:
void OnConnectionError() override;
void TryUpdateState();
@@ -88,6 +87,7 @@ class CommandBufferClientImpl : public mojo::CommandBufferClient,
gpu::CommandBufferSharedState* shared_state() const { return shared_state_; }
CommandBufferDelegate* delegate_;
+ mojo::Binding<mojo::CommandBufferLostContextObserver> observer_binding_;
mojo::CommandBufferPtr command_buffer_;
scoped_ptr<SyncClientImpl> sync_client_impl_;
scoped_ptr<SyncPointClientImpl> sync_point_client_impl_;
« no previous file with comments | « no previous file | mojo/gles2/command_buffer_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698