Index: mojo/examples/compositor_app/compositor_app.cc |
diff --git a/mojo/examples/compositor_app/compositor_app.cc b/mojo/examples/compositor_app/compositor_app.cc |
index 172e4c06f30fd20fe3d3e46215f095179e9c3095..2865fb99a30752322dbf1d372ff26218d5694f1d 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; |