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

Unified Diff: cc/output/overlay_strategy_common.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: Created 5 years, 3 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
« cc/output/overlay_candidate.cc ('K') | « cc/output/overlay_candidate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_common.cc
diff --git a/cc/output/overlay_strategy_common.cc b/cc/output/overlay_strategy_common.cc
index d142ba541555ef1dc2d4f0c31227fbcf4ccc0c70..2da0dd5159359234a8cc40513559dce21a8656cd 100644
--- a/cc/output/overlay_strategy_common.cc
+++ b/cc/output/overlay_strategy_common.cc
@@ -28,7 +28,8 @@ bool OverlayStrategyCommon::Attempt(RenderPassList* render_passes_in_draw_order,
QuadList& quad_list = root_render_pass->quad_list;
for (auto it = quad_list.begin(); it != quad_list.end();) {
OverlayCandidate candidate;
- if (!OverlayCandidate::FromDrawQuad(*it, &candidate)) {
+ if (!OverlayCandidate::IsAllowedQuad(*it) ||
+ !OverlayCandidate::FromDrawQuad(*it, &candidate)) {
++it;
continue;
}
« cc/output/overlay_candidate.cc ('K') | « cc/output/overlay_candidate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698