Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2724)

Unified Diff: cc/output/overlay_strategy_single_on_top.cc

Issue 1044093005: Preliminary compositor disabling patch. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove renderpass calculation Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/quads/draw_quad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_single_on_top.cc
diff --git a/cc/output/overlay_strategy_single_on_top.cc b/cc/output/overlay_strategy_single_on_top.cc
index 71897ed4596cc1f72bc370bba044136649ff0fe3..566ae1323c42b32e2e34aae68531bfee12167fce 100644
--- a/cc/output/overlay_strategy_single_on_top.cc
+++ b/cc/output/overlay_strategy_single_on_top.cc
@@ -187,6 +187,14 @@ bool OverlayStrategySingleOnTop::Attempt(
// If the candidate can be handled by an overlay, create a pass for it.
if (candidates[1].overlay_handled) {
quad_list.EraseAndInvalidateAllPointers(candidate_iterator);
+ root_render_pass->overlay_rect = gfx::Rect();
+ for (const auto* quad : root_render_pass->quad_list) {
+ if (quad->damaged) {
+ gfx::RectF rect = gfx::RectF(quad->visible_rect);
+ quad->quadTransform().TransformRect(&rect);
+ root_render_pass->overlay_rect.Union(gfx::ToEnclosingRect(rect));
+ }
+ }
candidate_list->swap(candidates);
return true;
}
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/quads/draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698