| Index: cc/output/gl_renderer.cc
|
| diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
|
| index f9cc3d71c3a232ca1d4b6aef52354891ed7e18c8..6f3f8a611617db6e7b2ce90c410d02547c153a20 100644
|
| --- a/cc/output/gl_renderer.cc
|
| +++ b/cc/output/gl_renderer.cc
|
| @@ -401,6 +401,7 @@ GLRenderer::GLRenderer(const RendererSettings* settings,
|
| use_blend_equation_advanced_coherent_ =
|
| context_caps.blend_equation_advanced_coherent;
|
| use_occlusion_query_ = context_caps.occlusion_query;
|
| + use_swap_with_bounds_ = context_caps.swap_buffers_with_bounds;
|
|
|
| InitializeSharedObjects();
|
| }
|
| @@ -2653,6 +2654,10 @@ void GLRenderer::SwapBuffers(std::vector<ui::LatencyInfo> latency_info) {
|
| output_frame.sub_buffer_rect = swap_buffer_rect_;
|
| }
|
|
|
| + if (use_swap_with_bounds_) {
|
| + overlay_processor_->GetContentBounds(&output_frame.content_bounds);
|
| + }
|
| +
|
| swapping_overlay_resources_.push_back(std::move(pending_overlay_resources_));
|
| pending_overlay_resources_.clear();
|
|
|
|
|