| Index: services/ui/ws/server_window_compositor_frame_sink.cc
|
| diff --git a/services/ui/ws/server_window_compositor_frame_sink.cc b/services/ui/ws/server_window_compositor_frame_sink.cc
|
| index 417cc36af41cf2ef3d7d430ff33193960e71385f..7cb88a4162730ce4e5284a549fcbbf35d13e0ef1 100644
|
| --- a/services/ui/ws/server_window_compositor_frame_sink.cc
|
| +++ b/services/ui/ws/server_window_compositor_frame_sink.cc
|
| @@ -69,8 +69,8 @@ void ServerWindowCompositorFrameSink::SubmitCompositorFrame(
|
| gfx::Size frame_size = frame.render_pass_list[0]->output_rect.size();
|
| // If the size of the CompostiorFrame has changed then destroy the existing
|
| // Surface and create a new one of the appropriate size.
|
| - if (local_frame_id_.is_null() || frame_size != last_submitted_frame_size_) {
|
| - if (!local_frame_id_.is_null())
|
| + if (!local_frame_id_.is_valid() || frame_size != last_submitted_frame_size_) {
|
| + if (local_frame_id_.is_valid())
|
| surface_factory_.Destroy(local_frame_id_);
|
| local_frame_id_ = surface_id_allocator_.GenerateId();
|
| surface_factory_.Create(local_frame_id_);
|
|
|