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

Unified Diff: ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc

Issue 1311013002: [Ozone] Fix SingleOnTop issue by checking if the quad is clipped. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
Index: ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc
diff --git a/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc b/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc
index 52e31b158230b4d40f17c75d833ebff7b9afd1b7..2fcbe8c90a8f4309bb0adb8bb0fbb069cf25c386 100644
--- a/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc
+++ b/ui/ozone/platform/drm/host/drm_overlay_candidates_host.cc
@@ -79,6 +79,9 @@ void DrmOverlayCandidatesHost::CheckSingleOverlay(
return;
if (overlay->transform == gfx::OVERLAY_TRANSFORM_INVALID)
return;
+ if (overlay->is_clipped &&
+ !overlay->clip_rect.Contains(overlay->quad_rect_in_target_space))
+ return;
OverlayCheck_Params lookup(*overlay);
auto iter = cache_.Get(lookup);

Powered by Google App Engine
This is Rietveld 408576698