| Index: cc/output/gl_renderer.cc
|
| diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
|
| index 5c30003e3e43643d8c896fe11c909cd63dc6987c..ea8031e145b51fd2be95277abefe5f0a80f00373 100644
|
| --- a/cc/output/gl_renderer.cc
|
| +++ b/cc/output/gl_renderer.cc
|
| @@ -348,8 +348,6 @@
|
|
|
| capabilities_.using_partial_swap =
|
| settings_->partial_swap_enabled && context_caps.gpu.post_sub_buffer;
|
| - capabilities_.allow_empty_swap = capabilities_.using_partial_swap ||
|
| - context_caps.gpu.commit_overlay_planes;
|
|
|
| DCHECK(!context_caps.gpu.iosurface || context_caps.gpu.texture_rectangle);
|
|
|
| @@ -2620,14 +2618,11 @@
|
| gfx::Rect(swap_buffer_rect_.x(),
|
| FlippedRootFramebuffer() ? flipped_y_pos_of_rect_bottom
|
| : swap_buffer_rect_.y(),
|
| - swap_buffer_rect_.width(), swap_buffer_rect_.height());
|
| + swap_buffer_rect_.width(),
|
| + swap_buffer_rect_.height());
|
| } else {
|
| - // Expand the swap rect to the full surface unless it's empty, and empty
|
| - // swap is allowed.
|
| - if (!swap_buffer_rect_.IsEmpty() || !capabilities_.allow_empty_swap) {
|
| - swap_buffer_rect_ = gfx::Rect(surface_size);
|
| - }
|
| - compositor_frame.gl_frame_data->sub_buffer_rect = swap_buffer_rect_;
|
| + compositor_frame.gl_frame_data->sub_buffer_rect =
|
| + gfx::Rect(output_surface_->SurfaceSize());
|
| }
|
| output_surface_->SwapBuffers(&compositor_frame);
|
|
|
|
|