Skip to content

Commit 4f96dc1

Browse files
committed
Refactor resource scale API to be based on stage-views lists
This commit changes the resource scale API to be based on ClutterActors new stage-views list. It also introduces proper support for actors like ClutterText where the allocation depends on the resource-scale, which allows getting the size and position perfect on the first frame.
1 parent 44f5b0e commit 4f96dc1

12 files changed

Lines changed: 290 additions & 278 deletions

clutter/clutter/clutter-actor-private.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,15 @@ void _clutter_actor_queue_relayout_on_clones
315315
void _clutter_actor_queue_only_relayout (ClutterActor *actor);
316316
void clutter_actor_clear_stage_views_recursive (ClutterActor *actor);
317317

318-
gboolean _clutter_actor_get_real_resource_scale (ClutterActor *actor,
319-
float *resource_scale);
318+
float clutter_actor_get_real_resource_scale (ClutterActor *actor);
320319

321320
ClutterPaintNode * clutter_actor_create_texture_paint_node (ClutterActor *self,
322321
CoglTexture *texture);
323322

324-
void clutter_actor_update_stage_views (ClutterActor *self);
323+
void clutter_actor_update_stage_views (ClutterActor *self,
324+
int phase);
325+
326+
void clutter_actor_queue_immediate_relayout (ClutterActor *self);
325327

326328
G_END_DECLS
327329

0 commit comments

Comments
 (0)