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

Unified Diff: mojo/gles2/command_buffer_client_impl.h

Issue 1686543004: mus: Modify mojo command buffer to match current chrome gpu ipc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review issues Created 4 years, 10 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 | « components/mus/public/interfaces/command_buffer.mojom ('k') | 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 2152150e53971b849a6234b68431898a6de5696a..3595f06f709afca064eadaffe60c69e5036b97ea 100644
--- a/mojo/gles2/command_buffer_client_impl.h
+++ b/mojo/gles2/command_buffer_client_impl.h
@@ -33,7 +33,7 @@ class CommandBufferDelegate {
};
class CommandBufferClientImpl
- : public mus::mojom::CommandBufferLostContextObserver,
+ : public mus::mojom::CommandBufferClient,
public gpu::CommandBuffer,
public gpu::GpuControl {
public:
@@ -84,8 +84,12 @@ class CommandBufferClientImpl
bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
private:
- // mus::mojom::CommandBufferLostContextObserver implementation:
- void DidLoseContext(int32_t lost_reason) override;
+ // mus::mojom::CommandBufferClient implementation:
+ void Destroyed(int32_t lost_reason, int32_t error) override;
+ void SignalAck(uint32_t id) override;
+ void SwapBuffersCompleted(int32_t result) override;
+ void UpdateState(const gpu::CommandBuffer::State& state) override;
+ void UpdateVSyncParameters(int64_t timebase, int64_t interval) override;
void TryUpdateState();
void MakeProgressAndUpdateState();
@@ -94,7 +98,7 @@ class CommandBufferClientImpl
CommandBufferDelegate* delegate_;
std::vector<int32_t> attribs_;
- mojo::Binding<mus::mojom::CommandBufferLostContextObserver> observer_binding_;
+ mojo::Binding<mus::mojom::CommandBufferClient> client_binding_;
mus::mojom::CommandBufferPtr command_buffer_;
uint64_t command_buffer_id_;
« no previous file with comments | « components/mus/public/interfaces/command_buffer.mojom ('k') | mojo/gles2/command_buffer_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698