mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 10:18:01 +02:00
pixman-renderer: Remove weston_view from repaint_region
We now have the view alpha cached in the paint node, so we can get it from there. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
7dcf887903
commit
0024857086
1 changed files with 3 additions and 4 deletions
|
|
@ -282,10 +282,9 @@ repaint_region(struct weston_paint_node *pnode,
|
|||
pixman_op_t pixman_op)
|
||||
{
|
||||
struct weston_output *output = pnode->output;
|
||||
struct weston_view *ev = pnode->view;
|
||||
struct pixman_renderer *pr =
|
||||
(struct pixman_renderer *) output->compositor->renderer;
|
||||
struct pixman_surface_state *ps = get_surface_state(ev->surface);
|
||||
struct pixman_surface_state *ps = get_surface_state(pnode->surface);
|
||||
struct pixman_output_state *po = get_output_state(output);
|
||||
pixman_image_t *target_image;
|
||||
pixman_transform_t transform;
|
||||
|
|
@ -312,8 +311,8 @@ repaint_region(struct weston_paint_node *pnode,
|
|||
if (ps->buffer_ref.buffer)
|
||||
wl_shm_buffer_begin_access(ps->buffer_ref.buffer->shm_buffer);
|
||||
|
||||
if (ev->alpha < 1.0) {
|
||||
mask.alpha = 0xffff * ev->alpha;
|
||||
if (pnode->view_alpha < 1.0) {
|
||||
mask.alpha = 0xffff * pnode->view_alpha;
|
||||
mask_image = pixman_image_create_solid_fill(&mask);
|
||||
} else {
|
||||
mask_image = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue