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

Unified Diff: cc/output/overlay_strategy_sandwich.cc

Issue 1380653003: Mac Overlays: Allow SolidColor and Tile quads to be candidates for overlays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@AllOrNothing2
Patch Set: Plumb allow_overlay Created 5 years, 2 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
Index: cc/output/overlay_strategy_sandwich.cc
diff --git a/cc/output/overlay_strategy_sandwich.cc b/cc/output/overlay_strategy_sandwich.cc
index 515afa5c820a2999a4bdaa28640b66fe1cb84949..4aaa63d811750baf7470b63941ee184887a94e87 100644
--- a/cc/output/overlay_strategy_sandwich.cc
+++ b/cc/output/overlay_strategy_sandwich.cc
@@ -45,10 +45,12 @@ bool OverlayStrategySandwich::Attempt(RenderPassList* render_passes,
QuadList& quad_list = render_passes->back()->quad_list;
for (auto it = quad_list.begin(); it != quad_list.end();) {
OverlayCandidate candidate;
- if (OverlayCandidate::FromDrawQuad(*it, &candidate))
+ if (OverlayCandidate::IsVideoQuad(*it) &&
+ OverlayCandidate::FromDrawQuad(*it, &candidate)) {
it = TryOverlay(render_passes->back(), candidate_list, candidate, it);
- else
+ } else {
++it;
+ }
}
return candidate_list->size() > 1;

Powered by Google App Engine
This is Rietveld 408576698