Johan Bilien c9b7efec96 Add a cache of size requests
clutter_actor_get_preferred_width/height currently caches only one size
requests, for a given height / width.

It's common for a layout manager to call get_preferred_width with 2
different heights during the same allocation cycle. Typically once in
the size request, once in the allocation. If
clutter_actor_get_preferred_width is called
alternatively with 2 different for_height, the cache is totally
inefficient, and we end up always querying the actor size even
when the actor does not need a re-allocation.

http://bugzilla.openedhand.com/show_bug.cgi?id=1876

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
2009-12-03 18:19:50 +00:00
..
2009-11-06 11:48:42 +00:00
2009-11-13 17:23:13 +00:00
2009-12-03 18:19:50 +00:00
2009-01-20 18:47:50 +00:00
2009-10-14 11:31:26 +01:00
2009-07-10 11:38:42 +01:00
2009-07-10 11:38:42 +01:00
2009-11-13 15:01:17 +00:00
2009-12-01 14:55:19 +00:00
2009-10-19 12:01:38 +01:00
2009-10-16 15:55:05 +01:00
2009-12-02 16:03:55 +00:00