
This splits culling into two different phases to move unobscured region culling to pre-paint to fix #2680. This is needed as direct scanout skips the paint phase altogether, but the pre-paint phase always runs as it's used for selecting the direct scanout surface. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3127>
14 lines
538 B
C
14 lines
538 B
C
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
|
|
#pragma once
|
|
|
|
#include "meta/meta-background-content.h"
|
|
|
|
cairo_region_t *meta_background_content_get_clip_region (MetaBackgroundContent *self);
|
|
|
|
void meta_background_content_cull_unobscured (MetaBackgroundContent *self,
|
|
cairo_region_t *unobscured_region);
|
|
|
|
void meta_background_content_cull_redraw_clip (MetaBackgroundContent *self,
|
|
cairo_region_t *clip_region);
|