gl: avoid copying RenderOp to GArray
authorChristian Hergert <chergert@redhat.com>
Wed, 9 Oct 2019 22:41:53 +0000 (15:41 -0700)
committerChristian Hergert <chergert@redhat.com>
Wed, 9 Oct 2019 22:41:53 +0000 (15:41 -0700)
commit528297f5e502e7fca98938a7024c7348ac65171c
tree073293932fd2187152b10dd2c26303d9a4337dd4
parentb29feb193eac97c9cc31f33290bf3731757f4cb2
gl: avoid copying RenderOp to GArray

Instead of copying the (rather large) RenderOp to the GArray, we can
simply set the fields directly in the allocated space for the struct.
In most cases, there wont be any allocations to make as the array size
is kept in tact across frame renderings.
gsk/gl/gskglrenderer.c
gsk/gl/gskglrenderops.c
gsk/gl/gskglrenderopsprivate.h