Chromium Code Reviews| 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..9ecac23606f7c8452b652960d8886e364c5c9938 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,10 @@ void DrmOverlayCandidatesHost::CheckSingleOverlay( |
| return; |
| if (overlay->transform == gfx::OVERLAY_TRANSFORM_INVALID) |
| return; |
| + if (!(overlay->is_clipped && |
|
danakj
2015/08/31 22:11:47
this doesn't quite look right?
you want to abort
danakj
2015/08/31 22:24:36
btw, where are the unit tests for this? they would
william.xie1
2015/09/01 03:40:33
Done.
william.xie1
2015/09/01 03:40:33
Done.
william.xie1
2015/09/01 03:40:33
Done.
|
| + overlay->clip_rect.Contains( |
| + gfx::ToEnclosingRect(overlay->geometry_rect)))) |
|
danakj
2015/08/31 22:11:47
if you make the geometry_rect a gfx::Rect you don'
william.xie1
2015/09/01 03:40:33
Done.
william.xie1
2015/09/01 03:40:33
Done.
william.xie1
2015/09/01 03:40:33
Done.
|
| + return; |
| OverlayCheck_Params lookup(*overlay); |
| auto iter = cache_.Get(lookup); |