mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
vulkan: Don't store the renderpass
It's only used when parsing.
This commit is contained in:
parent
11a0646281
commit
4311d17cb1
@ -15,7 +15,6 @@ struct _GskVulkanRenderPassOp
|
|||||||
GskVulkanOp op;
|
GskVulkanOp op;
|
||||||
|
|
||||||
GskVulkanImage *image;
|
GskVulkanImage *image;
|
||||||
GskVulkanRenderPass *render_pass;
|
|
||||||
cairo_rectangle_int_t area;
|
cairo_rectangle_int_t area;
|
||||||
graphene_size_t viewport_size;
|
graphene_size_t viewport_size;
|
||||||
|
|
||||||
@ -29,7 +28,6 @@ gsk_vulkan_render_pass_op_finish (GskVulkanOp *op)
|
|||||||
GskVulkanRenderPassOp *self = (GskVulkanRenderPassOp *) op;
|
GskVulkanRenderPassOp *self = (GskVulkanRenderPassOp *) op;
|
||||||
|
|
||||||
g_object_unref (self->image);
|
g_object_unref (self->image);
|
||||||
gsk_vulkan_render_pass_free (self->render_pass);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -254,6 +252,7 @@ gsk_vulkan_render_pass_op (GskVulkanRender *render,
|
|||||||
{
|
{
|
||||||
GskVulkanRenderPassOp *self;
|
GskVulkanRenderPassOp *self;
|
||||||
GskVulkanRenderPassEndOp *end;
|
GskVulkanRenderPassEndOp *end;
|
||||||
|
GskVulkanRenderPass *render_pass;
|
||||||
|
|
||||||
self = (GskVulkanRenderPassOp *) gsk_vulkan_op_alloc (render, &GSK_VULKAN_RENDER_PASS_OP_CLASS);
|
self = (GskVulkanRenderPassOp *) gsk_vulkan_op_alloc (render, &GSK_VULKAN_RENDER_PASS_OP_CLASS);
|
||||||
|
|
||||||
@ -263,15 +262,15 @@ gsk_vulkan_render_pass_op (GskVulkanRender *render,
|
|||||||
self->area = *area;
|
self->area = *area;
|
||||||
self->viewport_size = viewport->size;
|
self->viewport_size = viewport->size;
|
||||||
|
|
||||||
self->render_pass = gsk_vulkan_render_pass_new ();
|
render_pass = gsk_vulkan_render_pass_new ();
|
||||||
|
|
||||||
/* This invalidates the self pointer */
|
/* This invalidates the self pointer */
|
||||||
gsk_vulkan_render_pass_add (self->render_pass,
|
gsk_vulkan_render_pass_add (render_pass,
|
||||||
render,
|
render,
|
||||||
scale,
|
scale,
|
||||||
viewport,
|
viewport,
|
||||||
area,
|
area,
|
||||||
node);
|
node);
|
||||||
|
gsk_vulkan_render_pass_free (render_pass);
|
||||||
|
|
||||||
end = (GskVulkanRenderPassEndOp *) gsk_vulkan_op_alloc (render, &GSK_VULKAN_RENDER_PASS_END_OP_CLASS);
|
end = (GskVulkanRenderPassEndOp *) gsk_vulkan_op_alloc (render, &GSK_VULKAN_RENDER_PASS_END_OP_CLASS);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user