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

Unified Diff: content/browser/compositor/browser_compositor_overlay_candidate_validator_mac.mm

Issue 1373373003: Mac Overlays: Add AllOrNothing strategy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@OverlayTest
Patch Set: Rebase off master 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
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/browser_compositor_overlay_candidate_validator_mac.mm
diff --git a/content/browser/compositor/browser_compositor_overlay_candidate_validator_mac.mm b/content/browser/compositor/browser_compositor_overlay_candidate_validator_mac.mm
index d06b7ce3ba520dc4ba60021dbded54d116690e70..b7ed200df7a2940d650876d098794c2f4228c2c8 100644
--- a/content/browser/compositor/browser_compositor_overlay_candidate_validator_mac.mm
+++ b/content/browser/compositor/browser_compositor_overlay_candidate_validator_mac.mm
@@ -32,10 +32,8 @@ void BrowserCompositorOverlayCandidateValidatorMac::CheckOverlaySupport(
if (software_mirror_active_)
return;
- for (size_t i = 0; i < surfaces->size(); ++i) {
- if (surfaces->at(i).plane_z_order > 0)
- surfaces->at(i).overlay_handled = true;
- }
+ for (size_t i = 0; i < surfaces->size(); ++i)
+ surfaces->at(i).overlay_handled = true;
}
void BrowserCompositorOverlayCandidateValidatorMac::SetSoftwareMirrorMode(
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698