Lines Matching refs:hole
4 Subject: [PATCH 11/79] HACK: gl-renderer: Support making hole for surface
22 + /* Transparent hole region(excluding it's lower subsurface area) */
23 + pixman_region32_t hole;
35 + pixman_region32_init(&surface->hole);
43 + pixman_region32_fini(&surface->hole);
53 + * HACK: Make a hole for this surface
55 + * 1/ Set the hole region
56 + * wl_region_add(region, [hole region]);
57 + * 2/ Add a special rect to mark the region as a hole
63 + pixman_region32_t hole;
66 + pixman_region32_init_rect(&hole, -1, -1, 1, 1);
67 + pixman_region32_subtract(&hole, ®ion->region,
68 + &hole);
70 + pixman_region32_copy(&surface->hole, &hole);
71 + pixman_region32_fini(&hole);
73 + // Trigger repaint to apply the hole
136 + // HACK: Make hole for the surface(excluding it's lower subsurface area)
137 + if (pixman_region32_not_empty(&pnode->surface->hole)) {
139 + pixman_region32_t hole, region;
154 + pixman_region32_subtract(®ion, &pnode->surface->hole, ®ion);
155 + pixman_region32_init(&hole);
156 + weston_view_to_global_region(pnode->view, ®ion, &hole);
158 + pixman_region32_intersect(&hole, &hole, &repaint);
160 + weston_output_region_from_global(pnode->output, &hole);
161 + clear_region(pnode->view, &hole);
163 + pixman_region32_fini(&hole);