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

Unified Diff: mojo/gles2/command_buffer_client_impl.h

Issue 380123002: Mojo: Eliminate SyncDispatcher in favor of WaitForIncomingMethodCall (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove old TODO comment Created 6 years, 5 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 642902d75427b99af496125935307be13b816aff..f2d19b029f20c9d54e3d5025776ce30880218ffa 100644
--- a/mojo/gles2/command_buffer_client_impl.h
+++ b/mojo/gles2/command_buffer_client_impl.h
@@ -20,9 +20,6 @@ class RunLoop;
}
namespace mojo {
-template <typename S>
-class SyncDispatcher;
-
namespace gles2 {
class CommandBufferClientImpl;
@@ -34,7 +31,6 @@ class CommandBufferDelegate {
};
class CommandBufferClientImpl : public CommandBufferClient,
- public CommandBufferSyncClient,
public ErrorHandler,
public gpu::CommandBuffer,
public gpu::GpuControl {
@@ -80,17 +76,16 @@ class CommandBufferClientImpl : public CommandBufferClient,
void CancelAnimationFrames();
private:
+ class SyncClientImpl;
+
// CommandBufferClient implementation:
- virtual void DidInitialize(bool success) OVERRIDE;
- virtual void DidMakeProgress(CommandBufferStatePtr state) OVERRIDE;
virtual void DidDestroy() OVERRIDE;
virtual void LostContext(int32_t lost_reason) OVERRIDE;
+ virtual void DrawAnimationFrame() OVERRIDE;
// ErrorHandler implementation:
virtual void OnConnectionError() OVERRIDE;
- virtual void DrawAnimationFrame() OVERRIDE;
-
void TryUpdateState();
void MakeProgressAndUpdateState();
@@ -98,7 +93,7 @@ class CommandBufferClientImpl : public CommandBufferClient,
CommandBufferDelegate* delegate_;
CommandBufferPtr command_buffer_;
- scoped_ptr<SyncDispatcher<CommandBufferSyncClient> > sync_dispatcher_;
+ scoped_ptr<SyncClientImpl> sync_client_impl_;
State last_state_;
mojo::ScopedSharedBufferHandle shared_state_handle_;
@@ -106,7 +101,6 @@ class CommandBufferClientImpl : public CommandBufferClient,
int32 last_put_offset_;
int32 next_transfer_buffer_id_;
- bool initialize_result_;
const MojoAsyncWaiter* async_waiter_;
};
« 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