mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
actor: Add debugging notes for size cache
Add a note for cache hits, and another one for cache misses.
This commit is contained in:
parent
c9b7efec96
commit
cf62b8fe4a
@ -4632,6 +4632,7 @@ _clutter_actor_get_cached_size_request (gfloat for_size,
|
||||
if (sr->age > 0 &&
|
||||
sr->for_size == for_size)
|
||||
{
|
||||
CLUTTER_NOTE (LAYOUT, "Size cache hit for size: %.2f", for_size);
|
||||
*result = sr;
|
||||
return TRUE;
|
||||
}
|
||||
@ -4641,6 +4642,8 @@ _clutter_actor_get_cached_size_request (gfloat for_size,
|
||||
}
|
||||
}
|
||||
|
||||
CLUTTER_NOTE (LAYOUT, "Size cache miss for size: %.2f", for_size);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user