actor: Add debugging notes for size cache

Add a note for cache hits, and another one for cache misses.
This commit is contained in:
Emmanuele Bassi 2009-12-04 17:38:26 +00:00
parent c9b7efec96
commit cf62b8fe4a

View File

@ -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;
}