Chromium Code Reviews| Index: services/ui/surfaces/display_output_surface_ozone.cc |
| diff --git a/services/ui/surfaces/display_output_surface_ozone.cc b/services/ui/surfaces/display_output_surface_ozone.cc |
| index ea218b2d8f7078b498ab3f57c7990d2530058878..6701a570e2a255167da397aa0012d3eb824c8b20 100644 |
| --- a/services/ui/surfaces/display_output_surface_ozone.cc |
| +++ b/services/ui/surfaces/display_output_surface_ozone.cc |
| @@ -83,7 +83,11 @@ void DisplayOutputSurfaceOzone::SwapBuffers(cc::OutputSurfaceFrame frame) { |
| DCHECK(reshape_size_ == frame.size); |
| swap_size_ = reshape_size_; |
| - buffer_queue_->SwapBuffers(frame.sub_buffer_rect); |
| + gfx::Rect damage(swap_size_); |
| + if (frame.sub_buffer_rect) { |
|
danakj
2017/02/22 00:36:57
no {}
|
| + damage = *frame.sub_buffer_rect; |
| + } |
| + buffer_queue_->SwapBuffers(damage); |
|
danakj
2017/02/22 00:36:57
?: maybe here also?
halliwell
2017/02/22 14:19:28
Done.
|
| DisplayOutputSurface::SwapBuffers(std::move(frame)); |
| } |