| Index: services/ui/surfaces/compositor_frame_sink.cc
|
| diff --git a/services/ui/surfaces/compositor_frame_sink.cc b/services/ui/surfaces/compositor_frame_sink.cc
|
| index c880bd130d122447cedd8eeb369424f72e49433f..02945fe7e02e2c365f5af081581891f6a9eb55c3 100644
|
| --- a/services/ui/surfaces/compositor_frame_sink.cc
|
| +++ b/services/ui/surfaces/compositor_frame_sink.cc
|
| @@ -93,7 +93,7 @@ void CompositorFrameSink::SubmitCompositorFrame(
|
| gfx::Size frame_size =
|
| frame.delegated_frame_data->render_pass_list.back()->output_rect.size();
|
| if (frame_size.IsEmpty() || frame_size != display_size_) {
|
| - if (!local_frame_id_.is_null())
|
| + if (local_frame_id_.is_valid())
|
| factory_.Destroy(local_frame_id_);
|
| local_frame_id_ = allocator_.GenerateId();
|
| factory_.Create(local_frame_id_);
|
|
|