mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
e3bac4063c
When drawing opaque color regions that are large enough, use vkCmdClearAttachments()/glClear() instead of a shader. This speeds up background rendering on particular on older GPUs. See the commit messages ofbb2cd7225e
ce042f7ba1
0edd7547c1
for a further discussion of performance impacts.
14 lines
413 B
C
14 lines
413 B
C
#pragma once
|
|
|
|
#include "gskgputypesprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void gsk_gpu_clear_op (GskGpuFrame *frame,
|
|
const cairo_rectangle_int_t *rect,
|
|
const GdkRGBA *color);
|
|
|
|
|
|
G_END_DECLS
|
|
|