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

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: 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
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..4350dc7631b380939f77d1968cef1cbab156f8ee 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::CommandBufferObserver,
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::CommandBufferObserver 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::CommandBufferObserver> observer_binding_;
mus::mojom::CommandBufferPtr command_buffer_;
uint64_t command_buffer_id_;

Powered by Google App Engine
This is Rietveld 408576698