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

Unified Diff: mojo/services/gles2/command_buffer_impl.h

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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/services/gles2/command_buffer_impl.h
diff --git a/mojo/services/gles2/command_buffer_impl.h b/mojo/services/gles2/command_buffer_impl.h
index 3a461e5e7c7db4e17442ad414db25e71be290cf3..e76a3d2fc5208dc61c45a7882a2d047fa8b6b7e3 100644
--- a/mojo/services/gles2/command_buffer_impl.h
+++ b/mojo/services/gles2/command_buffer_impl.h
@@ -7,7 +7,6 @@
#include "base/memory/scoped_ptr.h"
#include "base/timer/timer.h"
-#include "mojo/public/cpp/bindings/remote_ptr.h"
#include "mojo/public/cpp/system/core.h"
#include "mojo/services/gles2/command_buffer.mojom.h"
#include "ui/gfx/native_widget_types.h"
@@ -25,14 +24,15 @@ class GLES2Decoder;
namespace mojo {
namespace services {
-class CommandBufferImpl : public CommandBuffer {
+class CommandBufferImpl : public InterfaceImpl<CommandBuffer> {
public:
- CommandBufferImpl(ScopedCommandBufferClientHandle client,
- gfx::AcceleratedWidget widget,
+ CommandBufferImpl(gfx::AcceleratedWidget widget,
const gfx::Size& size);
virtual ~CommandBufferImpl();
- virtual void Initialize(ScopedCommandBufferSyncClientHandle sync_client,
+ virtual void OnConnectionError() OVERRIDE;
+ virtual void SetClient(CommandBufferClient* client) OVERRIDE;
+ virtual void Initialize(CommandBufferSyncClientPtr sync_client,
mojo::ScopedSharedBufferHandle shared_state) OVERRIDE;
virtual void SetGetBuffer(int32_t buffer) OVERRIDE;
virtual void Flush(int32_t put_offset) OVERRIDE;
@@ -54,8 +54,8 @@ class CommandBufferImpl : public CommandBuffer {
void DrawAnimationFrame();
- RemotePtr<CommandBufferClient> client_;
- RemotePtr<CommandBufferSyncClient> sync_client_;
+ CommandBufferClient* client_;
+ CommandBufferSyncClientPtr sync_client_;
gfx::AcceleratedWidget widget_;
gfx::Size size_;

Powered by Google App Engine
This is Rietveld 408576698