libs: blend: simplify generator API
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 14 Jan 2020 17:25:11 +0000 (18:25 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 14 Jan 2020 18:52:18 +0000 (19:52 +0100)
commit81f3a7f02bc4e4d6b38214d2816e65c63a2e3435
tree05243378190115c406b5f86795d89c588305190c
parentf97d858237e8ed830ab7515cef8fa103f9ecf107
libs: blend: simplify generator API

Instead of using a parent structure that has to be derived by API
consumers, this change propse a simplification by using the common
pattern of GTK of passing a function pointer and user data which will
be passed as its parameter. That user data contains the state and the
function will be called to update that state.
gst-libs/gst/vaapi/gstvaapiblend.c
gst-libs/gst/vaapi/gstvaapiblend.h
gst/vaapi/gstvaapioverlay.c