| Index: content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
| diff --git a/content/browser/compositor/gpu_browser_compositor_output_surface.cc b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
| index 53b6304db3577834f2270fdfc04d1900c71665d1..a1dbeaff3199d00adbddbc7cdf3c919624312152 100644
|
| --- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
| +++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
| @@ -105,7 +105,10 @@ void GpuBrowserCompositorOutputSurface::SwapBuffers(
|
| }
|
| }
|
|
|
| - if (swap_rect == gfx::Rect(frame.size))
|
| + if (frame.swap_with_damage_rect != gfx::Rect(frame.size))
|
| + context_provider_->ContextSupport()->SwapWithDamage(
|
| + frame.swap_with_damage_rect);
|
| + else if (swap_rect == gfx::Rect(frame.size))
|
| context_provider_->ContextSupport()->Swap();
|
| else
|
| context_provider_->ContextSupport()->PartialSwapBuffers(swap_rect);
|
|
|