diff options
Diffstat (limited to 'mojo/examples/compositor_app')
-rw-r--r-- | mojo/examples/compositor_app/compositor_app.cc | 10 | ||||
-rw-r--r-- | mojo/examples/compositor_app/gles2_client_impl.cc | 3 | ||||
-rw-r--r-- | mojo/examples/compositor_app/gles2_client_impl.h | 2 |
3 files changed, 6 insertions, 9 deletions
diff --git a/mojo/examples/compositor_app/compositor_app.cc b/mojo/examples/compositor_app/compositor_app.cc index 172e4c0..2865fb9 100644 --- a/mojo/examples/compositor_app/compositor_app.cc +++ b/mojo/examples/compositor_app/compositor_app.cc @@ -30,11 +30,10 @@ namespace mojo { namespace examples { -class SampleApp : public ShellClientStub { +class SampleApp : public ShellClient { public: explicit SampleApp(ScopedMessagePipeHandle shell_handle) - : shell_(shell_handle.Pass()) { - shell_.SetPeer(this); + : shell_(shell_handle.Pass(), this) { mojo::ScopedMessagePipeHandle client_handle, native_viewport_handle; CreateMessagePipe(&client_handle, &native_viewport_handle); native_viewport_client_.reset( @@ -48,11 +47,10 @@ class SampleApp : public ShellClientStub { } private: - class NativeViewportClientImpl : public mojo::NativeViewportClientStub { + class NativeViewportClientImpl : public mojo::NativeViewportClient { public: explicit NativeViewportClientImpl(ScopedMessagePipeHandle viewport_handle) - : viewport_(viewport_handle.Pass()) { - viewport_.SetPeer(this); + : viewport_(viewport_handle.Pass(), this) { viewport_->Open(); ScopedMessagePipeHandle gles2_handle; ScopedMessagePipeHandle gles2_client_handle; diff --git a/mojo/examples/compositor_app/gles2_client_impl.cc b/mojo/examples/compositor_app/gles2_client_impl.cc index fecb42d..f6849fd 100644 --- a/mojo/examples/compositor_app/gles2_client_impl.cc +++ b/mojo/examples/compositor_app/gles2_client_impl.cc @@ -16,8 +16,7 @@ GLES2ClientImpl::GLES2ClientImpl( const base::Callback<void(gfx::Size)>& context_created_callback) : context_created_callback_(context_created_callback), impl_(NULL), - service_(pipe.Pass()) { - service_.SetPeer(this); + service_(pipe.Pass(), this) { } GLES2ClientImpl::~GLES2ClientImpl() { service_->Destroy(); } diff --git a/mojo/examples/compositor_app/gles2_client_impl.h b/mojo/examples/compositor_app/gles2_client_impl.h index b5e4e7e..38d80b5 100644 --- a/mojo/examples/compositor_app/gles2_client_impl.h +++ b/mojo/examples/compositor_app/gles2_client_impl.h @@ -23,7 +23,7 @@ class GLES2Implementation; namespace mojo { namespace examples { -class GLES2ClientImpl : public GLES2ClientStub { +class GLES2ClientImpl : public GLES2Client { public: GLES2ClientImpl( ScopedMessagePipeHandle pipe, |