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

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: 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
« no previous file with comments | « cc/output/overlay_strategy_sandwich.cc ('k') | cc/output/overlay_strategy_underlay.cc » ('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 ca254b2b8f31f402727c1b01927f8abc2afda803..dd0799b509b50915bde819d679b5b9b8f777d9ed 100644
--- a/cc/output/overlay_strategy_single_on_top.cc
+++ b/cc/output/overlay_strategy_single_on_top.cc
@@ -24,7 +24,8 @@ bool OverlayStrategySingleOnTop::Attempt(ResourceProvider* resource_provider,
QuadList* quad_list = &render_passes->back()->quad_list;
for (auto it = quad_list->begin(); it != quad_list->end(); ++it) {
OverlayCandidate candidate;
- if (OverlayCandidate::FromDrawQuad(resource_provider, *it, &candidate) &&
+ if (capability_checker_->IsSupportedQuad(*it) &&
+ OverlayCandidate::FromDrawQuad(resource_provider, *it, &candidate) &&
TryOverlay(quad_list, candidate_list, candidate, it)) {
return true;
}
« no previous file with comments | « cc/output/overlay_strategy_sandwich.cc ('k') | cc/output/overlay_strategy_underlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698