Chromium Code Reviews| 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 8ad8384dbaf8e62208841f95deb10c877d651ceb..ba28a06f56ee14b67cf0f5c9a6ede49d17941948 100644 |
| --- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc |
| +++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc |
| @@ -108,10 +108,12 @@ void GpuBrowserCompositorOutputSurface::SwapBuffers( |
| } |
| } |
|
danakj
2017/02/16 18:54:19
this could DCHECK that we don't have both partial
halliwell
2017/02/23 18:01:47
Done (btw, empty swap can only happen here through
|
| - if (swap_rect == gfx::Rect(frame.size)) |
| - context_provider_->ContextSupport()->Swap(); |
| - else |
| + if (swap_rect != gfx::Rect(frame.size)) |
| context_provider_->ContextSupport()->PartialSwapBuffers(swap_rect); |
| + else if (!frame.content_bounds.empty()) |
| + context_provider_->ContextSupport()->SwapWithBounds(frame.content_bounds); |
| + else |
| + context_provider_->ContextSupport()->Swap(); |
| } |
| uint32_t GpuBrowserCompositorOutputSurface::GetFramebufferCopyTextureFormat() { |