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

Unified Diff: cc/output/overlay_strategy_single_on_top.cc

Issue 2698843005: cc: Make SingleOnTop strategy reject transformed overlays. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | cc/output/overlay_unittest.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 ecc400972df08c93b2de6383dd46e324f192ee0d..75a31a2c1cca227e2e1d75b3a227561d0eb8b11d 100644
--- a/cc/output/overlay_strategy_single_on_top.cc
+++ b/cc/output/overlay_strategy_single_on_top.cc
@@ -39,6 +39,10 @@ bool OverlayStrategySingleOnTop::TryOverlay(
OverlayCandidateList* candidate_list,
const OverlayCandidate& candidate,
QuadList::Iterator candidate_iterator) {
+ // Reject transformed overlays.
+ // TODO(dcastagna): Remove this once drm platform supports transforms.
+ if (candidate.transform != gfx::OVERLAY_TRANSFORM_NONE)
+ return false;
// Check that no prior quads overlap it.
if (OverlayCandidate::IsOccluded(candidate, quad_list->cbegin(),
candidate_iterator))
« no previous file with comments | « no previous file | cc/output/overlay_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698