mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
9f548efd32
Make color-related ops take the ccs and a GdkColor, and make decisions about color conversion on the cpu vs the gpu. This makes the node processor code simpler, and lets use convert the color directly into the op instance without extra copying. We also pass opacity to the op, so it can be applied when we write the color into the instance. Lastly, rorder the offset to come right after the opacity argument. Treat the color and rounded color ops the same way. Update all callers. With this, the prepare_color apis in gskgpunodeprocessor.c are no longer used and have been dropped.
22 lines
987 B
C
22 lines
987 B
C
#pragma once
|
|
|
|
#include "gskgputypesprivate.h"
|
|
#include "gsktypes.h"
|
|
#include "gdkcolorprivate.h"
|
|
|
|
#include <graphene.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
void gsk_gpu_rounded_color_op (GskGpuFrame *frame,
|
|
GskGpuShaderClip clip,
|
|
GdkColorState *ccs,
|
|
float opacity,
|
|
const graphene_point_t *offset,
|
|
const GskRoundedRect *outline,
|
|
const GdkColor *color);
|
|
|
|
|
|
G_END_DECLS
|
|
|