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

Unified Diff: cc/output/overlay_strategy_fullscreen.cc

Issue 2281033003: cc: Fullscreen overlay removes all the other quads/planes. (Closed)
Patch Set: Rebase on master. Created 4 years, 4 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 | « no previous file | cc/output/overlay_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_fullscreen.cc
diff --git a/cc/output/overlay_strategy_fullscreen.cc b/cc/output/overlay_strategy_fullscreen.cc
index 7cc8b7d9082ea1ad9bfd71568fb046d83ce5c746..9bc6cd61ad9889035a47770343abecab8afe9d6a 100644
--- a/cc/output/overlay_strategy_fullscreen.cc
+++ b/cc/output/overlay_strategy_fullscreen.cc
@@ -48,10 +48,12 @@ bool OverlayStrategyFullscreen::Attempt(ResourceProvider* resource_provider,
return false;
}
- candidate.plane_z_order = 1;
+ candidate.plane_z_order = 0;
candidate.overlay_handled = true;
- candidate_list->push_back(candidate);
- quad_list->EraseAndInvalidateAllPointers(front);
+ OverlayCandidateList new_candidate_list;
+ new_candidate_list.push_back(candidate);
+ candidate_list->swap(new_candidate_list);
+ render_pass->quad_list = QuadList(); // Remove all the quads
return true;
}
« no previous file with comments | « no previous file | cc/output/overlay_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698