mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
gpu: Handle opacity in the Cairo path
Fixes random calls to add_fallback_node() from code that wants to handle opacity. Also makes Cairo nodes work with opacity, of course.
This commit is contained in:
parent
9947760d87
commit
6dbbd65ef8
@ -1032,7 +1032,6 @@ gsk_gpu_node_processor_add_fallback_node (GskGpuNodeProcessor *self,
|
||||
{
|
||||
GskGpuImage *image;
|
||||
graphene_rect_t clipped_bounds;
|
||||
guint32 descriptor;
|
||||
|
||||
if (!gsk_gpu_node_processor_clip_node_bounds (self, node, &clipped_bounds))
|
||||
return;
|
||||
@ -1045,14 +1044,10 @@ gsk_gpu_node_processor_add_fallback_node (GskGpuNodeProcessor *self,
|
||||
(GskGpuCairoFunc) gsk_render_node_draw_fallback,
|
||||
gsk_render_node_ref (node),
|
||||
(GDestroyNotify) gsk_render_node_unref);
|
||||
descriptor = gsk_gpu_node_processor_add_image (self, image, GSK_GPU_SAMPLER_DEFAULT);
|
||||
|
||||
gsk_gpu_texture_op (self->frame,
|
||||
gsk_gpu_clip_get_shader_clip (&self->clip, &self->offset, &clipped_bounds),
|
||||
self->desc,
|
||||
descriptor,
|
||||
gsk_gpu_node_processor_image_op (self,
|
||||
image,
|
||||
&node->bounds,
|
||||
&self->offset,
|
||||
&clipped_bounds);
|
||||
}
|
||||
|
||||
@ -3525,7 +3520,7 @@ static const struct
|
||||
},
|
||||
[GSK_CAIRO_NODE] = {
|
||||
0,
|
||||
0,
|
||||
GSK_GPU_HANDLE_OPACITY,
|
||||
NULL,
|
||||
NULL,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user