Sink: keep track of widget allocation size

Instead of obtaining allocation size on each frame draw, keep track of its current size and update value on its change.
This commit is contained in:
Rafał Dzięgiel
2021-03-05 18:41:26 +01:00
parent 637212f7e8
commit fe3fd32932
3 changed files with 33 additions and 18 deletions

View File

@@ -55,6 +55,10 @@ struct _GtkGstBaseWidget
gint display_width;
gint display_height;
/* Widget dimensions */
gint scaled_width;
gint scaled_height;
gboolean negotiated;
GstBuffer *pending_buffer;
GstBuffer *buffer;