Chromium Code Reviews| Index: content/renderer/android/synchronous_compositor_output_surface.cc |
| diff --git a/content/renderer/android/synchronous_compositor_output_surface.cc b/content/renderer/android/synchronous_compositor_output_surface.cc |
| index a26bb2f0c95078f8a4fc80cfbeb2eb712e1293d8..ffea3862ca6a2c06585438093d0e09249ae12e3c 100644 |
| --- a/content/renderer/android/synchronous_compositor_output_surface.cc |
| +++ b/content/renderer/android/synchronous_compositor_output_surface.cc |
| @@ -106,6 +106,7 @@ void SynchronousCompositorOutputSurface::SetSyncClient( |
| SynchronousCompositorOutputSurfaceClient* compositor) { |
| DCHECK(CalledOnValidThread()); |
| sync_client_ = compositor; |
| + Send(new SyncCompositorHostMsg_OutputSurfaceCreated(routing_id_)); |
|
boliu
2016/06/04 00:47:01
only do this if sync_client_ is not null
|
| } |
| bool SynchronousCompositorOutputSurface::OnMessageReceived( |
| @@ -131,7 +132,6 @@ bool SynchronousCompositorOutputSurface::BindToClient( |
| base::Unretained(this))); |
| registry_->RegisterOutputSurface(routing_id_, this); |
| registered_ = true; |
| - Send(new SyncCompositorHostMsg_OutputSurfaceCreated(routing_id_)); |
| return true; |
| } |