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

Unified Diff: cc/output/overlay_strategy_all_or_nothing.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_candidate_validator.h ('k') | cc/output/overlay_strategy_sandwich.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_strategy_all_or_nothing.cc
diff --git a/cc/output/overlay_strategy_all_or_nothing.cc b/cc/output/overlay_strategy_all_or_nothing.cc
index 40c58cd0a4e26816f661aa6cc9e97720c31cf8df..419ec63c9d6ecb728d6080911c018e30d7378c43 100644
--- a/cc/output/overlay_strategy_all_or_nothing.cc
+++ b/cc/output/overlay_strategy_all_or_nothing.cc
@@ -26,8 +26,10 @@ bool OverlayStrategyAllOrNothing::Attempt(ResourceProvider* resource_provider,
for (const DrawQuad* quad : quad_list) {
OverlayCandidate candidate;
- if (!OverlayCandidate::FromDrawQuad(resource_provider, quad, &candidate))
+ if (!capability_checker_->IsSupportedQuad(quad) ||
+ !OverlayCandidate::FromDrawQuad(resource_provider, quad, &candidate)) {
return false;
+ }
candidate.plane_z_order = next_z_order--;
new_candidates.push_back(candidate);
}
« no previous file with comments | « cc/output/overlay_candidate_validator.h ('k') | cc/output/overlay_strategy_sandwich.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698