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

Unified Diff: cc/output/overlay_strategy_single_on_top.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_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 d08da5cd31452a8409f9f2d9f5ced28717ce25f9..1b2a2c7bdacc629b1bc236a71685d8311629ff99 100644
--- a/cc/output/overlay_strategy_single_on_top.cc
+++ b/cc/output/overlay_strategy_single_on_top.cc
@@ -23,7 +23,8 @@ bool OverlayStrategySingleOnTop::Attempt(RenderPassList* render_passes,
QuadList& quad_list = render_passes->back()->quad_list;
for (auto it = quad_list.begin(); it != quad_list.end(); ++it) {
OverlayCandidate candidate;
- if (OverlayCandidate::FromDrawQuad(*it, &candidate) &&
+ if (OverlayCandidate::IsVideoQuad(*it) &&
+ OverlayCandidate::FromDrawQuad(*it, &candidate) &&
TryOverlay(quad_list, candidate_list, candidate, it)) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698