mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
compositor-view/native: Remove leftover check
This check was originally added because `window` was actually used.
While technically correct, there's no reason to keep it around.
Fixes: 4736f873f2
("compositor/native: Add support for direct scanout per view")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3177>
This commit is contained in:
parent
bd6196f4ca
commit
f26939255e
@ -86,7 +86,6 @@ find_scanout_candidate (MetaCompositorView *compositor_view,
|
|||||||
MetaCrtc *crtc;
|
MetaCrtc *crtc;
|
||||||
CoglFramebuffer *framebuffer;
|
CoglFramebuffer *framebuffer;
|
||||||
MetaWindowActor *window_actor;
|
MetaWindowActor *window_actor;
|
||||||
MetaWindow *window;
|
|
||||||
MtkRectangle view_rect;
|
MtkRectangle view_rect;
|
||||||
ClutterActorBox actor_box;
|
ClutterActorBox actor_box;
|
||||||
MetaSurfaceActor *surface_actor;
|
MetaSurfaceActor *surface_actor;
|
||||||
@ -182,14 +181,6 @@ find_scanout_candidate (MetaCompositorView *compositor_view,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
window = meta_window_actor_get_meta_window (window_actor);
|
|
||||||
if (!window)
|
|
||||||
{
|
|
||||||
meta_topic (META_DEBUG_RENDER,
|
|
||||||
"No direct scanout candidate: no meta-window");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!clutter_actor_get_paint_box (CLUTTER_ACTOR (window_actor),
|
if (!clutter_actor_get_paint_box (CLUTTER_ACTOR (window_actor),
|
||||||
&actor_box))
|
&actor_box))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user